Did you try `django_admin.site.unregister(Site)` before you register Site with your own admin?
אורי u...@speedy.net On Tue, Feb 4, 2020 at 7:56 AM Mike Dewhirst <mi...@dewhirst.com.au> wrote: > How do I control contrib.sites in the Admin? > > I want to make it invisible to everyone except the superuser. > > I have tried - inexpertly - to hijack the sites app in my own project > but it stubbornly insists on using its own admin.py > > Thanks for switching on any light bulbs > > Cheers > > Mike > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/9eee993a-98d0-fa77-9e92-a8bd447af37d%40dewhirst.com.au > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeHi-N1wmz5buJgUEMfqRET5U6ZuFnSsOFSWp7iUOQWgjg%40mail.gmail.com.