I have a model which I am manipulating through the Django administrator.
The model and "its business logic" requires me to establish a specific behavior regarding its form to enter data. What I need to do is the following:
I have the following fields:
What I want to do is that when I select a name in the field Name
, according to the selected value, I will display certain information (which will also be selected) in the fields Type
, Freedom Degrees
It is something similar to when one in the registration forms, selects a country and according to that country, depart the departments / states / provinces and according to the selected depart cities or municipalities.
This I want to do for the administration module that Django provides, and I would also do it in my application properly. I know there are some things for customize the administration interface or working with ModelAdmin.form to add behaviors
I wanted to share this concern, in case someone has done things like that and if I'm on the right track.