summaryrefslogtreecommitdiffstats
path: root/core/models
diff options
context:
space:
mode:
Diffstat (limited to 'core/models')
-rw-r--r--core/models/caves.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index cac62a8..9d3472f 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -156,8 +156,14 @@ class Cave(TroggleModel):
def no_location(self):
no_data = True
for e in CaveAndEntrance.objects.filter(cave=self):
- if e.entrance.best_station:
- no_data = False
+ if e.entrance.best_station() and e.entrance.best_station() != "":
+ #print(self, e, e.entrance.best_station())
+ if e.entrance.best_station_object().x:
+ no_data = False
+ # if no_data:
+ # print(self, "location", no_data)
+ # else:
+ # print(self, "NO LOCATION", no_data)
return no_data
def singleentrance(self):