mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-27 02:12:18 +00:00
FIX: Stop 404 on failed search, again
This commit is contained in:
@@ -226,11 +226,10 @@ class EventPrint(generic.View):
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
class EventArchive(generic.ArchiveIndexView):
|
class EventArchive(generic.ListView):
|
||||||
model = models.Event
|
model = models.Event
|
||||||
paginate_by = 25
|
paginate_by = 25
|
||||||
template_name = "RIGS/event_archive.html"
|
template_name = "RIGS/event_archive.html"
|
||||||
date_field = "start_date"
|
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
# get super context
|
# get super context
|
||||||
|
|||||||
Reference in New Issue
Block a user