I
I
idarif_it2017-05-19 16:20:22
Django
idarif_it, 2017-05-19 16:20:22

Select dependency (Django)?

How to make dependent items of the SELECT field. not using a model?
There is a form
class Coutry(forms.Form):
coutries=((1,("USA)),(2,("Russia")))
counry_select = forms.ChoiceField(choices = countries)
city = ChoiceField(choices=?) Here you need to make items dependent on country_select
How can I implement this?Thank you very much for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question