Re: Add user to authors on model save in admin form

2013-04-20 Thread Michael Hernandez
I do not think having Author = model.ManyToMany will work. A user is an author. An author is a user. This is a one to one a.k.a models.ForeignKey(User) A blog has many authors, of which each is a user. And Many Authors can write on a blog Blog.author = models.ManyToMany(Author) On Friday, Apr

Add user to authors on model save in admin form

2013-04-19 Thread Laurent GARTNER
Hi, I’m in trouble with model admin. I’ve create a CMS with Django and I try to add the last article editor, but it doesn’t work if the user don’t add his name in the field. In model.py class Article(models.Model): … author = models.ManyToManyField(User, ve