Hi Margie,
Not that much hacky.
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
Store request, user and ModelAdmin dynamic stuff in local storage and
you are happy.
On Thu, May 28, 2009 at 5:06 AM, Margie wrote:
>
> Yuri, Thanks for suggesting thread local. I didn't know about
Yuri, Thanks for suggesting thread local. I didn't know about that.
In the end, a think a concise description of my problem is that when I
create my own widget for use in the admin change list, it seems that I
am unable to identify the instance for which this widget is being
rendered. Thus, I a
I've noticed that the url:
http://example.com/http%3A%2F%2Ftest.org%2Fvocab%23FOAF/
becomes:
http://example.com/http://test.org/vocab#FOAF/
once it goes in the WSGIRequestHandler.
But this results in an invalid url. Is this an oversight or is there
something in the HTTP spec that says otherw
My usual workaround to this is to store object, request and action
("add", "change", "changelist") in thread local storage when add_view,
changelist_view or change_view are called, and use it later.
I will be happy if a ModelAdmin instance was created for each request,
then I'll able to use it to