Do not 404 if no galleries
This commit is contained in:
parent
3a61058379
commit
3afbc2b7e1
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ from .models import Gallery, Photo, Tag
|
||||||
class GalleryDateView(LoginRequiredMixin):
|
class GalleryDateView(LoginRequiredMixin):
|
||||||
model = Gallery
|
model = Gallery
|
||||||
date_field = "date_start"
|
date_field = "date_start"
|
||||||
|
allow_empty = True # Do not 404 if no galleries
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
"""Hide galleries with only private photos"""
|
"""Hide galleries with only private photos"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue