Re: store user as owner automaticaly

2008-04-10 Thread Mike Axiak
I usually do it via JavaScript [1]. However, this only works in an environment when you trust the person editing the content (i.e. the Admin). -Mike 1: http://mike.axiak.net/media/js/admin_overrides.js --~--~-~--~~~---~--~~ You received this message because you

Re: store user as owner automaticaly

2008-04-10 Thread Rajesh Dhawan
> 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): >    

Re: store user as owner automaticaly

2008-04-10 Thread Michael
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 = model

Re: store user as owner automaticaly

2008-04-09 Thread Rajesh Dhawan
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-a

Re: store user as owner automaticaly

2008-04-09 Thread [EMAIL PROTECTED]
Hi Manuel, On Apr 9, 2:46 pm, Manuel Meyer <[EMAIL PROTECTED]> wrote: > in a model Article i want to store the user who created the article. > I have this: > > class Article(models.Model): > > owner = models.ForeignKey(User, null=True, blank=True) > > But I wonder, if it is possibl

store user as owner automaticaly

2008-04-09 Thread Manuel Meyer
Hi, in a model Article i want to store the user who created the article. I have this: class Article(models.Model): owner = models.ForeignKey(User, null=True, blank=True) But I wonder, if it is possible, to set the owner in an overwritten save() method, as a drop-down list is