from django import forms XXX_CHOICES = ('1','2','3','4','5','6','7') class SearchForm(forms.Form): X = forms.ChoiceField(label='houm', choices=((x, x) for x in XXX_CHOICES)) 

How to make the list in Django so that the list on the html page could add other values ​​that are not included in the list?

  • make an add form through which you can add items to XXX_CHOICES ? - Eugene Dennis

0