From d6bcc2f5dd2c271fffbae940d5c69e9405a8ade1 Mon Sep 17 00:00:00 2001 From: tomtom5152 Date: Thu, 5 Mar 2015 15:11:23 +0000 Subject: [PATCH] Removed logic for the exception of start > end. This didn't add anything to UX so will need to find a better way of doing this. Ultimately, saying that there are no events available IS the correct response. --- RIGS/rigboard.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py index 8e2ce0d4..7c5c305c 100644 --- a/RIGS/rigboard.py +++ b/RIGS/rigboard.py @@ -9,7 +9,7 @@ from django.shortcuts import get_object_or_404 from django.template import Context, RequestContext from django.template.loader import get_template from django.conf import settings -from django.http import HttpResponse, Http404 +from django.http import HttpResponse, HttpResponseBadRequest from django.db.models import Q from z3c.rml import rml2pdf from PyPDF2 import PdfFileMerger, PdfFileReader @@ -129,8 +129,6 @@ class EventArchive(generic.ArchiveIndexView): if end != "": filter = Q(start_date__lte=end) if start: - if start > end: - raise Http404("The selected start date is after the end date") if filter: filter = filter & Q(start_date__gte=start) else: