On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
What's the easiest way to write an add manipulator that automatically
provides the current authenticated user for that field?

What I usually do is write the manipulator so its __init__ takes an
extra argument -- a user -- and have its save() method insert that
user into the field (which is then not shown in public forms). In
views which use it, I just call it as 'MyManipulator(request.user)'.

--
"May the forces of evil become confused on the way to your house."
 -- George Carlin

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