Re: Override value on save in admin

2006-08-17 Thread Bryan Chow

This was brought up a couple days ago:
http://groups.google.com/group/django-users/browse_thread/thread/ca7091de1e961dff


On 8/17/06, fyl <[EMAIL PROTECTED]> wrote:
> Just entering data in the admin interface. I want to stuck the current
> user in a field at save time if nothing has been specified. I
> understand needing to define a new save method and calling the "real
> one" in the model. But, do I have access to who someone is currently
> logged in as?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Override value on save in admin

2006-08-17 Thread Chris Long

Might be of help:
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser

Chris


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Override value on save in admin

2006-08-17 Thread fyl

Just entering data in the admin interface. I want to stuck the current
user in a field at save time if nothing has been specified. I
understand needing to define a new save method and calling the "real
one" in the model. But, do I have access to who someone is currently
logged in as?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---