summaryrefslogtreecommitdiffstats
path: root/expo/views_other.py
diff options
context:
space:
mode:
Diffstat (limited to 'expo/views_other.py')
-rw-r--r--expo/views_other.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/expo/views_other.py b/expo/views_other.py
new file mode 100644
index 0000000..808238e
--- /dev/null
+++ b/expo/views_other.py
@@ -0,0 +1,13 @@
+from django.shortcuts import render_to_response
+from troggle.expo.models import Cave, Expedition, Person, LogbookEntry
+import troggle.settings as settings
+from django import forms
+from django.db.models import Q
+
+def stats(request):
+ statsDict={}
+ statsDict['expoCount'] = int(Expedition.objects.count())
+ statsDict['caveCount'] = int(Cave.objects.count())
+ statsDict['personCount'] = int(Person.objects.count())
+ statsDict['logbookEntryCount'] = int(LogbookEntry.objects.count())
+ return render_to_response('statistics.html', statsDict) \ No newline at end of file