summaryrefslogtreecommitdiff
path: root/app/locations/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations/views.py')
-rw-r--r--app/locations/views.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/locations/views.py b/app/locations/views.py
index 666e9a3..3dca6c7 100644
--- a/app/locations/views.py
+++ b/app/locations/views.py
@@ -42,6 +42,20 @@ class MapList(ListView):
return context
+class TravelsList(ListView):
+ """
+ Return list of Entries by trip
+ """
+ context_object_name = 'object_list'
+ queryset = Post.objects.filter(status__exact=1)
+ template_name = 'travels.html'
+
+ def get_context_data(self, **kwargs):
+ # Call the base implementation first to get a context
+ context = super(TravelsList, self).get_context_data(**kwargs)
+ return context
+
+
class MapDataList(ListView):
"""
Build data file for Entries on map