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
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
2 matches
Mail list logo