[Answer]-How to show subclass model in Django-admin inline form?

1👍

Then in this case the super class Question should be an abstract class:

class Question(models.Model):
    question_package = models.ManyToManyField(QuestionPackage, blank=True)
    name = models.CharField(max_length=128)
    answer = models.TextField()

    class Meta:
        abstract = True

https://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base-classes

More info here Django Admin Interface Does Not Use Subclass's __unicode__()

Leave a comment