feat: add views for Organisation model

Location picker on update view
This commit is contained in:
James Graham
2021-01-15 14:58:05 +00:00
parent 2d85ab4370
commit 9db870bcb0
10 changed files with 259 additions and 3 deletions

View File

@@ -24,6 +24,17 @@ def get_date_year_range() -> typing.Iterable[int]:
return range(this_year, this_year - num_years_display, -1)
class OrganisationForm(forms.ModelForm):
"""Form for creating / updating an instance of :class:`Organisation`."""
class Meta:
model = models.Organisation
fields = [
'name',
'latitude',
'longitude'
]
class PersonForm(forms.ModelForm):
"""Form for creating / updating an instance of :class:`Person`."""
class Meta: