Answer the question
In order to leave comments, you need to log in
How to design a model in Django?
Please advise on the following diagram. I need to make a menu with 3 hierarchies:
Home -> Category-> Product.
There are several types of goods. There is an abstract class and 2 subclasses with their own properties:
class Main()
class Meta:
abstract = True
class Tovar1(Main)
class Tovar2(Main)
Answer the question
In order to leave comments, you need to log in
At first I thought the Category class with ForeignKey on Product1 and Product2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question