Hi Ken,

If you _really_ want it to be automatic, I think your best bet is to use a 
middleware to store the user or request object in a "thread local" 
variable, and then have a pre_save signal set the last_updated_by field 
based on that. That method is frowned upon, but should work. (If you're 
doing "green" threading, it may break.) The pre_save signal could error, or 
something if it is not able to determine the request (like in the 
command-line case).

Thanks,
Collin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bcf744ef-17a4-4665-90f4-9611b7842dce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to