We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12076b commit 0c207ebCopy full SHA for 0c207eb
1 file changed
src/community_db/forms.py
@@ -1,5 +1,7 @@
1
from django import forms
2
3
+from .models import Person
4
+
5
6
class QuickSearchForm(forms.Form):
7
search = forms.CharField(max_length=100, required=False)
@@ -8,5 +10,5 @@ class QuickSearchForm(forms.Form):
8
10
class PersonForm(forms.Form):
9
11
first_name = forms.CharField(max_length=100)
12
last_name = forms.CharField(max_length=100)
- country = forms.CharField(max_length=100, required=False)
13
+ country = forms.ChoiceField(required=False, choices=Person.Countries.choices)
14
mobile_number = forms.CharField(max_length=20, required=False)
0 commit comments