agateblue/django-dynamic-preferences

Unregister dynamic preferences models from django admin

willtrimz opened this issue · 1 comments

I have created my own custom form page for updating my global preferences and have no need to view them within django's admin site and therefore would like to remove them from it to reduce clutter.

To unregister default django models such as Groups and Users, you can simply unregister them from within your admin.py file:
`from django.contrib.auth.models import User

admin.site.unregister(Group)`

Is there a way to unregister global preferences from the admin page? As I have not been able to find out how thus far.

Have you tried inspecting the source code?

admin.site.register(GlobalPreferenceModel, GlobalPreferenceAdmin)

I would just reverse what they register in the admin.py file. That should do the trick