Whoa, You can just overwrite save in the models and/or the form and get the person who created the object. If you want to limit access to these models it gets more complicated as the other users told you, but to get the original creator just:
class Article(models.Model): .... owner = models.ForeignKey(User, null=True, blank=True, editable=False) def save(self): if not self.owner: self.owner = request.user super(Article, self).save() On Wed, Apr 9, 2008 at 10:15 AM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi, > > On Apr 9, 9:46 am, Manuel Meyer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > in a model Article i want to store the user who created the article. > > As Felix suggested, the newforms-admin method is the ideal/recommended > method for accomplishing this in the admin. If you can not switch to > the newforms-admin branch at the moment, there is an interim admin > solution described here: > > http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser > > Be aware that it's a hack that defeats the clean separation between > your model and view/request layers. > > -Rajesh D > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---