I am using django 1.8.4 and i have following model class Book(models.Model): title = models.CharField(max_length=100)
class Article(models.Model): title = models.CharField(max_length=100) class Paper(models.Model): title = models.CharField(max_length=100) class Rating(models.Model): #Generic foreign key content_type =models.ForeignKey(ContentType, blank=True, null=True) object_id = models.PositiveIntegerField() object = GenericForeignKey('content_type', 'object_id') rate = models.CharField(max_length=2, choices=RATING_CHOICES) Where Rating has a generic key which can be linked to Paper, Article or Book. I want django admin to display inline form where i can edit Rating so i can add Rating record and either Book or Paper or Article in a single form. But i m unable to do. I tried GenericTabularInline but i *want that user must be able to choose whether he wants to add book, paper or article to the rating record with some choice field on a single form in django admin*. I tried read document but it is not helping plss need help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6148d18-9275-4bdf-818f-1a60d266dd28%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.