mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 02:49:21 +02:00
More cleanup
This commit is contained in:
parent
d8265dd423
commit
be68c8f562
2 changed files with 5 additions and 17 deletions
|
@ -2317,16 +2317,6 @@ class WaffleFlagAdmin(FlagAdmin):
|
|||
fields = "__all__"
|
||||
|
||||
|
||||
class WaffleSwitchAdmin(SwitchAdmin):
|
||||
"""Custom admin implementation of django-waffle's Switch class"""
|
||||
|
||||
class Meta:
|
||||
"""Contains meta information about this class"""
|
||||
|
||||
model = models.WaffleSwitch
|
||||
fields = "__all__"
|
||||
|
||||
|
||||
admin.site.unregister(LogEntry) # Unregister the default registration
|
||||
|
||||
admin.site.register(LogEntry, CustomLogEntryAdmin)
|
||||
|
@ -2352,7 +2342,7 @@ admin.site.register(models.VerifiedByStaff, VerifiedByStaffAdmin)
|
|||
|
||||
# Register our custom waffle implementations
|
||||
admin.site.register(models.WaffleFlag, WaffleFlagAdmin)
|
||||
admin.site.register(models.WaffleSwitch, WaffleSwitchAdmin)
|
||||
|
||||
# Unregister Sample from the waffle library
|
||||
# Unregister Switch and Sample from the waffle library
|
||||
admin.site.unregister(Switch)
|
||||
admin.site.unregister(Sample)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue