I’m working on a project using Django where I have a category-based system. Each category has its own set of dynamic attributes.
When creating a new product:
The category is selected first.
Based on the selected category, its related attributes should be displayed.
Some attributes have predefined values (choices) to reduce errors, while others allow free input.
What I’m trying to achieve:
When selecting a category in Django Admin, the related attributes should load dynamically.
If an attribute has predefined values, it should appear as a dropdown (select field).
If not, it should appear as a regular input field.
Question:
Does Django Admin support this functionality out of the box?
If yes, what is the best way to implement it?
If not, what is the recommended approach ?