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
> 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):
>
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
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
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
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
6 matches
Mail list logo