From e5723e260d0a7eea6fe2c89d455c834fa1e28be8 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Fri, 27 Sep 2019 21:49:54 -0500 Subject: [PATCH] Added points of interest to `loc_child_obj` + fixes issues with not being able to find the page for POI objects --- GeoffreyApp/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GeoffreyApp/models.py b/GeoffreyApp/models.py index 448dcfe..d77e006 100644 --- a/GeoffreyApp/models.py +++ b/GeoffreyApp/models.py @@ -259,6 +259,8 @@ class Location(models.Model): return self.market elif hasattr(self, "attraction"): return self.attraction + elif hasattr(self, "pointofintrest"): + return self.pointofintrest else: return self