Fixed attraction missing in loc_child_obj
parent
50aad08967
commit
2816d528a0
|
@ -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
|
||||
|
||||
|
|
|
@ -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')),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue