diff options
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/statistics.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py index 395858b..99af707 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -12,7 +12,7 @@ from django.utils import timezone #from django.views.generic.list import ListView from troggle.core.models.troggle import Expedition, Person, PersonExpedition, DataIssue -from troggle.core.models.caves import Cave, LogbookEntry +from troggle.core.models.caves import Cave, LogbookEntry, Entrance from troggle.core.models.survex import SurvexBlock import troggle.settings as settings @@ -157,3 +157,14 @@ def dataissues(request): dilist.sort(key = myFunc) return render(request,'dataissues.html', {'didict': dilist}) + +def eastings(request): + '''report each Northing/Easting pair wherever recorded + ''' + ents = [] + entrances = Entrance.objects.all() + for e in entrances: + if e.easting or e.northing: + ents.append(e) + + return render(request,'eastings.html', {'ents': ents}) |