I have a model from django.contrib.auth.models import User
class Post(models.Model): with_some_properties = model.CharField(max_length=1) author = models.ForeignKey(User) def clean(self): if self.author is None: self.author = ???? When a post is saved I would like to bind the current logged in user the the self.author field in the clean method. How could I accomplish this ? Regards, Jonas. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.