Current request, object and action as fields of ModelAdmin instances (newforms-admin branch)

2008-06-07 Thread Yuri Baburov
Hi guys, recently I found out that for much easier admin interface role-based customization, some methods that doesn't have access to request and edited object now, needs them. However, I don't want to apply threadlocal patch -- why it's not added to django yet if it is the best way to go? And I

Re: Current request, object and action as fields of ModelAdmin instances (newforms-admin branch)

2008-06-09 Thread Luke Plant
On Sunday 01 June 2008 08:20:13 Yuri Baburov wrote: > However, I don't want to apply threadlocal patch -- why it's not > added to django yet if it is the best way to go? What do you mean the 'threadlocal patch'? You can add a threadlocal middleware without patching Django itself. http://code

Re: Current request, object and action as fields of ModelAdmin instances (newforms-admin branch)

2008-06-10 Thread Simon Willison
On Jun 1, 8:20 am, "Yuri Baburov" <[EMAIL PROTECTED]> wrote: > So, how about an idea of adding request, object, and action to > ModelAdmin instances in newforms-admin code rather than in user code > and refactoring newforms-admin code based on this decision? We've used that exact trick recently a