feat(people): Add view to create Person

User profile nav directs to create new Person for user
if there is not one currently associated

resolves issue #4
This commit is contained in:
James Graham
2020-02-19 08:17:39 +00:00
parent e530ddc8ec
commit d57c4769ae
8 changed files with 140 additions and 6 deletions

19
people/forms.py Normal file
View File

@@ -0,0 +1,19 @@
"""
Forms for creating / updating models belonging to the 'people' app.
"""
from django import forms
from . import models
class PersonForm(forms.ModelForm):
"""
Form for creating / updating an instance of :class:`Person`.
"""
class Meta:
model = models.Person
fields = [
'name',
'core_member',
]