feat: add location fields to person answer sets

This commit is contained in:
James Graham
2020-12-15 14:23:51 +00:00
parent 82a235e6ff
commit 8e52f779ee
7 changed files with 61 additions and 9 deletions

View File

@@ -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()