Fixed attraction missing in loc_child_obj
parent
50aad08967
commit
2816d528a0
|
@ -226,6 +226,8 @@ class Location(models.Model):
|
||||||
return self.publicfarm
|
return self.publicfarm
|
||||||
elif hasattr(self, "market"):
|
elif hasattr(self, "market"):
|
||||||
return self.market
|
return self.market
|
||||||
|
elif hasattr(self, "attraction"):
|
||||||
|
return self.attraction
|
||||||
else:
|
else:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ urlpatterns = [
|
||||||
name='GeoffreyPointOfInterestInfo'),
|
name='GeoffreyPointOfInterestInfo'),
|
||||||
url(r'^attraction/$', views.AttractionList.as_view(), name='GeoffreyAttraction'),
|
url(r'^attraction/$', views.AttractionList.as_view(), name='GeoffreyAttraction'),
|
||||||
url(r'^attraction/(?P<id>[0-9]{1,9})/$', views.AttractionInfo.as_view(),
|
url(r'^attraction/(?P<id>[0-9]{1,9})/$', views.AttractionInfo.as_view(),
|
||||||
name='AttractionInfo'),
|
name='GeoffreyAttractionInfo'),
|
||||||
path('api/', include('GeoffreyApp.api.urls')),
|
path('api/', include('GeoffreyApp.api.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue