Re: [Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Dylan Reinhold
Thanks for sharing Mike. Dylan On Mon, Feb 25, 2019 at 9:35 PM Mike Dewhirst wrote: > Thank you all for your attention. Kept me going. (another resend this time > hopefully it will be laid out better) > > The fix is to initialise the self.change_form_template to None *every* > time

[Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Mike Dewhirst
Thank you all for your attention. Kept me going. (another resend this time hopefully it will be laid out better) The fix is to initialise the self.change_form_template to None *every* time ModelAdmin.change_form() is called. If it is None the

[Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Mike Dewhirst
Thank you all for your attention. Kept me going. The fix is to initialise the self.change_form_template to None *every* time ModelAdmin.change_form() is called. If it is None the ModelAdmin.render_change_form() method will dynamically create the model instance change form. Otherwise it uses

Re: How can I refresh admin_urls

2019-02-25 Thread Mike Dewhirst
On Sunday, February 24, 2019 at 11:25:13 AM UTC+11, Scot Hacker wrote: > > Django Admin is customizable to an extent, but at a certain point those > customizations can cost you more time than they save, and it makes more > sense to build your business logic in a standard app/view. Without

Re: How can I refresh admin_urls

2019-02-23 Thread Scot Hacker
Django Admin is customizable to an extent, but at a certain point those customizations can cost you more time than they save, and it makes more sense to build your business logic in a standard app/view. Without digging into your code, my spidey sense tells me your app is at that point - stop

How can I refresh admin_urls

2019-02-22 Thread Mike Dewhirst
(Resend with urls which I previously omitted) In a 'Substance' app I have a Stripe payment facility working from within the Admin. The problem is it spoils admin_urls so the user cannot get back to the Substance Admin. When the Stripe work is done, how do I re-initialise the admin urls? I

How can I refresh admin_urls

2019-02-21 Thread Mike Dewhirst
In a 'Substance' app I have a Stripe payment facility working from within the Admin. The problem is it spoils admin_urls so the user cannot get back to the Substance Admin. When the Stripe work is done, how do I re-initialise the admin urls? I want