Answer the question
In order to leave comments, you need to log in
Dynamic model attributes?
Hello! I'm trying to think of a solution, there is a model, for example, a Product in an online store, and I want to add various attributes, weight, color, and so on to it. But at the same time, some products have these attributes, some do not or have other attributes at all. The first thing that comes to mind is to use django polymorphic. But for example, such models cannot be expanded from the admin panel. You can create a separate table for attributes, but then the search for such attributes, it seems to me, will be heavy in terms of load. Can you tell me what other solutions could be?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question