feat(people): Add nationality and residence fields

See #1
This commit is contained in:
James Graham
2020-02-25 08:38:30 +00:00
parent abcfd67f77
commit 9210636475
6 changed files with 80 additions and 7 deletions

View File

@@ -3,6 +3,8 @@ Forms for creating / updating models belonging to the 'people' app.
"""
from django import forms
from django_select2.forms import Select2Widget
from . import models
@@ -16,6 +18,10 @@ class PersonForm(forms.ModelForm):
'user',
'relationship_targets',
]
widgets = {
'nationality': Select2Widget(),
'country_of_residence': Select2Widget(),
}
class RelationshipForm(forms.ModelForm):