Reputation: 1891
Right now I have the following models.
class Publisher(models.Model):
name = models.CharField()
class Article(models.Model):
name = models.CharField()
publisher = models.ManyToManyField(Publisher, related_name='articles', blank=True)
When I go to Django admin site -> add/edit Article page, I get the select list of the Article to link.
But when I go to Add/Edit Publisher page I don't see a select list to associate Article
Upvotes: 0
Views: 104
Reputation: 61
ArticleInline
and add it to PublisherAdmin.inlines
. Check more info about inlinespublisher
to ArticleAdmin.exclude
Upvotes: 1