summaryrefslogtreecommitdiff
path: root/app/photos/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/photos/views.py')
-rw-r--r--app/photos/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/photos/views.py b/app/photos/views.py
index ec4ba61..915b022 100644
--- a/app/photos/views.py
+++ b/app/photos/views.py
@@ -30,6 +30,7 @@ class PrivateGalleryList(PaginatedListView):
context['is_private'] = True
return context
+
class Gallery(DetailView):
model = LuxGallery
slug_field = "slug"
@@ -62,6 +63,13 @@ class OldGalleryList(PaginatedListView):
return context
+class DailyPhotoList(PaginatedListView):
+ template_name = 'archives/photo_daily_list.html'
+
+ def get_queryset(self):
+ return LuxImage.objects.filter(is_public=True, title__startswith="daily_")
+
+
def gallery_list(request, page):
request.page_url = '/photos/%d/'
request.page = int(page)