Answer the question
In order to leave comments, you need to log in
How to implement dependencies on data entry in Django?
Welcome all. Stuck on the next task and can not figure out how to do it. If there is an example I would be grateful.
The essence of the problem:
When adding a new product (model1), depending on the category, a form with attributes should be opened (model2 different for each category). When saving, the selected attributes must be saved as a list in the model field1 based on the selected values in the attribute form.
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