Fixed attraction missing in loc_child_obj

doc_update
Joey Hines 2019-05-13 09:53:01 -05:00
parent 50aad08967
commit 2816d528a0
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -23,7 +23,7 @@ urlpatterns = [
name='GeoffreyPointOfInterestInfo'),
url(r'^attraction/$', views.AttractionList.as_view(), name='GeoffreyAttraction'),
url(r'^attraction/(?P<id>[0-9]{1,9})/$', views.AttractionInfo.as_view(),
name='AttractionInfo'),
name='GeoffreyAttractionInfo'),
path('api/', include('GeoffreyApp.api.urls')),
]