Answer the question
In order to leave comments, you need to log in
How to display two models in the django admin in one table?
There are two models.
Both are the same, the difference is only in the name.
class ModelA(models.Model):
sum = models.FloatField(verbose_name='Сумма')
com = models.TextField(verbose_name='Коментарий', blank=True, null=True)
class ModelB(models.Model):
sum = models.FloatField(verbose_name='Сумма')
com = models.TextField(verbose_name='Коментарий', blank=True, null=True)
Answer the question
In order to leave comments, you need to log in
Inherit them from a common root and register it in the admin panel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question