mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user