mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
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:
19
people/forms.py
Normal file
19
people/forms.py
Normal 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',
|
||||
]
|
||||
Reference in New Issue
Block a user