Skip to content

Commit

Permalink
Remove magic_link models from admin
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanjbrown committed Apr 17, 2024
1 parent a136ce2 commit de99026
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions consultation_analyser/consultations/admin.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from django.contrib import admin
from waffle.models import Flag, Sample
from magic_link.models import MagicLink, MagicLinkUse

admin.site.site_header = "Consultation analyser admin panel"

# we aren't using these features of django-waffle yet
admin.site.unregister(Flag)
admin.site.unregister(Sample)

admin.site.unregister(MagicLink)
admin.site.unregister(MagicLinkUse)
2 changes: 1 addition & 1 deletion consultation_analyser/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"django.contrib.auth",
"django.contrib.admin",
"waffle", # feature flags
"magic_link",
"consultation_analyser.authentication",
"consultation_analyser.consultations",
"consultation_analyser.support_console",
"compressor",
"magic_link",
"crispy_forms",
"crispy_forms_gds",
]
Expand Down

0 comments on commit de99026

Please sign in to comment.