feat(people): Add discipline and themes to Person

See #1
This commit is contained in:
James Graham
2020-02-25 11:19:46 +00:00
parent d733b6db63
commit 39127cf972
5 changed files with 103 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ Forms for creating / updating models belonging to the 'people' app.
"""
from django import forms
from django_select2.forms import Select2Widget
from django_select2.forms import Select2Widget, Select2MultipleWidget
from . import models
@@ -21,6 +21,7 @@ class PersonForm(forms.ModelForm):
widgets = {
'nationality': Select2Widget(),
'country_of_residence': Select2Widget(),
'themes': Select2MultipleWidget(),
}