Added points of interest to `loc_child_obj`

+ fixes issues with not being able to find the page for POI objects
doc_update
Joey Hines 2019-09-27 21:49:54 -05:00
parent 743c64fd17
commit e5723e260d
1 changed files with 2 additions and 0 deletions

View File

@ -259,6 +259,8 @@ class Location(models.Model):
return self.market return self.market
elif hasattr(self, "attraction"): elif hasattr(self, "attraction"):
return self.attraction return self.attraction
elif hasattr(self, "pointofintrest"):
return self.pointofintrest
else: else:
return self return self