Re: Configurable landing page in admin site

2020-12-24 Thread Adam Johnson
No I don’t think so given that customisation is already possible. On Thu, 24 Dec 2020 at 15:05, Gagan Deep wrote: > Thanks for sharing Adam. This should take care of my use case. > > Do you think there can be a potential use for introducing a > setting/attribute dedicated for adding a landing pa

Re: Configurable landing page in admin site

2020-12-24 Thread Gagan Deep
Thanks for sharing Adam. This should take care of my use case. Do you think there can be a potential use for introducing a setting/attribute dedicated for adding a landing page? Best, Gagan Deep On Wednesday, December 23, 2020 at 8:37:22 PM UTC+5:30 Adam Johnson wrote: > You can do this alr

Re: Configurable landing page in admin site

2020-12-23 Thread Adam Johnson
You can do this already by changing where the login redirects to in your custom AdminSite class def login(self, *args, **kwargs): response = super().login(*args, **kwargs) if isinstance(response, HttpResponseRedirect): response = HttpResponseRedirect("/custom-page/")

Configurable landing page in admin site

2020-12-23 Thread Gagan Deep
Greetings of the day, I have use case where I want to show a custom landing page after a user logs into the admin site. One way to do it will be to override the index_template attribute of AdminSite