2008/8/25 krylatij <[EMAIL PROTECTED]>:
> You can use ThreadLocals middleware 
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
> to get current user

No.

There is no longer any reason whatsoever to use this in any way in the
admin. It was an ugly, fragile hack before and it's unnecessary now
because ModelAdmin has a get_form() method -- which receives the
HttpRequest object as an argument -- that you can override to tweak
the form on a per-request basis.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to