diff options
Diffstat (limited to 'app/media/views.py')
-rw-r--r-- | app/media/views.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/media/views.py b/app/media/views.py index 04ac11c..82c68ba 100644 --- a/app/media/views.py +++ b/app/media/views.py @@ -38,14 +38,20 @@ class Gallery(DetailView): class GalleryList(PaginatedListView): - template_name = 'archives/gallery_list.html' + #template_name = 'luxgallery_list.html' + template_name = 'luxgallery_detail.html' def get_queryset(self): - return LuxGallery.objects.filter(is_public=True) + self.gallery = LuxGallery.objects.get(slug="placeholder") + return self.gallery + #actual return statement for when I have some galleries: + #return LuxGallery.objects.filter(is_public=True) def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(GalleryList, self).get_context_data(**kwargs) + context['breadcrumbs'] = ('Images',) + context['crumb_url'] = '/media/' context['is_private'] = False return context |