I want to have some select fields in Django with relations. What i mean:
if i selected Country, in Select "Region" should be a regions from Country.
I have many fields, and i want define diese "dependencies" in form settings, like
dependencies = {'country':(region, area, appellation), 'type':(character,), 'region' : (area, appellation),}
After that i need a procedure, wich make a dependencies in form.
and i want to have a javascript, wich load "onchange parent" a new data in "child" Select.
It should bi a secure load, for example CSRF protected.
Please, It should be only a Django possibilities, not additional mods. of course, javascript should be created.
What i need:
django form settings code.
java data load script
protected data responce code.