mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
feat: add location fields to person answer sets
This commit is contained in:
@@ -177,5 +177,11 @@ class PersonAnswerSet(AnswerSet):
|
||||
#: Project themes within this person works
|
||||
themes = models.ManyToManyField(Theme, related_name='people', blank=True)
|
||||
|
||||
#: Latitude for displaying locaiton on a map
|
||||
latitude = models.FloatField(blank=True, null=True)
|
||||
|
||||
#: Longitude for displaying locaiton on a map
|
||||
longitude = models.FloatField(blank=True, null=True)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return self.person.get_absolute_url()
|
||||
|
||||
Reference in New Issue
Block a user