mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
User profile nav directs to create new Person for user if there is not one currently associated resolves issue #4
20 lines
364 B
Python
20 lines
364 B
Python
"""
|
|
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',
|
|
]
|