Re: Changelist links for proxy model admins

2021-10-20 Thread Niccolò Mineo
Hi Adam, let me explain with one use case (I believe there's at least one more, but it doesn't matter for example's sake): say you have a model Employee with two proxy models DeliveryPerson and CallCenterOperator, but only Employee has a ModelAdmin. You get to the Employee admin changelist

Re: Changelist links for proxy model admins

2021-10-20 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Niccolò I suspect no one has replied to your thread because your use case is too niche. Perhaps try showing the issue with more words and more visually with a screenshot or two. To me it sounds like "the admin links to the wrong place for proxy models" which sounds like a plain bug, and if

Changelist links for proxy model admins

2021-10-17 Thread Niccolò Mineo
Hi. When one is displaying a proxy model admin I think It could be nice to automatically override the default behaviour for instances in the changelist and have them redirect to the proxy URL, instead of the default, non-proxy one. What do you think? I can prepare a PR. -- You received

Changelist links for proxy model admins

2021-09-24 Thread Niccolò Mineo
Hi. When one is displaying a proxy model admin I think It could be nice to have a boolean attribute on the ModelAdmin to override the default changelist behaviour for instance links and have them redirect to the proxy URL. -- You received this message because you are subscribed to the Google