You have to pass request.user from some view to the apropiate save method.
views.py:
def save_human(reqiest):
# do some stuff
human.save(request.user)
models.py:
class Human(Model):
# ...
def save(self, user):
# do something with user
# may be
# self.user = user
super(Human, self).save()
Greets!
Juanjo
--
mi blog: http://www.juanjoconti.com.ar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---