mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-11-01 10:33:53 +00:00
feat: add location fields to person answer sets
This commit is contained in:
7 files changed
+61
-9
No files matched your search
@@ -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