Re: contrib.sites Admin problem

2020-02-06 Thread maninder singh Kumar
I figure that since only one kind of users, namely super or admin exist in django, it has got to be in the permissions. As staff items are not objects. [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Wed, Feb 5, 2020

Re: contrib.sites Admin problem

2020-02-04 Thread Mike Dewhirst
On 4/02/2020 7:00 pm, Mike Dewhirst wrote: Tomorrow I'm going to examine contenttype permissions. Maybe that's where to hide things. Yes indeed. Foot in mouth again. Removing view permissions to site models drops it from the Admin. Thank you Ori and  Maninder for taking time - sorry to bothe

Re: contrib.sites Admin problem

2020-02-04 Thread אורי
How are your models defined in sites? אורי u...@speedy.net On Tue, Feb 4, 2020 at 9:24 AM Mike Dewhirst wrote: > On 4/02/2020 5:47 pm, אורי wrote: > > Did you try `django_admin.site.unregister(Site)` before you register > > Site with your own admin? > > Yes. > > I have tried lots of things but

Re: contrib.sites Admin problem

2020-02-04 Thread Mike Dewhirst
Tomorrow I'm going to examine contenttype permissions. Maybe that's where to hide things. Back in the am Cheers Mike On 4/02/2020 6:23 pm, Mike Dewhirst wrote: On 4/02/2020 5:47 pm, אורי wrote: Did you try `django_admin.site.unregister(Site)` before you register Site with your own admin?

Re: contrib.sites Admin problem

2020-02-03 Thread Mike Dewhirst
On 4/02/2020 6:03 pm, maninder singh Kumar wrote: I believe the django templates used for admin are pretty good.  Are they as good as they claim ? Not sure what you are getting at here. They are very generic and I'm not sure how I might intercept the sites template. Is that what you mean? Mi

Re: contrib.sites Admin problem

2020-02-03 Thread Mike Dewhirst
On 4/02/2020 5:47 pm, אורי wrote: Did you try `django_admin.site.unregister(Site)` before you register Site with your own admin? Yes. I have tried lots of things but I think I'm missing something very basic. It must begin in settings.INSTALLED_APPS somehow. This is how it is currently sittin

Re: contrib.sites Admin problem

2020-02-03 Thread maninder singh Kumar
I believe the django templates used for admin are pretty good. Are they as good as they claim ? Sent from my iPad > On 04-Feb-2020, at 12:17 PM, אורי wrote: > > Did you try `django_admin.site.unregister(Site)` before you register Site > with your own admin? > > אורי > u...@speedy.net > >

Re: contrib.sites Admin problem

2020-02-03 Thread אורי
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 wrote: > How do I control contrib.sites in the Admin? > > I want to make it invisible to everyone except the superuser. > > I have tr