feat: add location fields to person answer sets

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

No files matched your search

+6
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()