Hello all! Is it possible to find out current user id form "myapp/models.py" file so i can customize the way it is saved from the admin interface?
I'd like to do something like class Myapp(models.Model): ... ... def save(self): if user.is_superuser: dosomethinghere() super(Myapp, self).save() I've noticed that django saves an history of the changes occurred to a any row in myapp table, so i think it should be easy to find out current user. Thanks in advance! Haku! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---