mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
feat: add views for Organisation model
Location picker on update view
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user