summaryrefslogtreecommitdiff
path: root/nop
diff options
context:
space:
mode:
Diffstat (limited to 'nop')
-rw-r--r--nop/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nop/views.py b/nop/views.py
index 712be84..4b43975 100644
--- a/nop/views.py
+++ b/nop/views.py
@@ -122,7 +122,8 @@ def nop_form(request):
#context.update(csrf(request)) # in django template: {% csrf_token %}
date = None
time = None
- if request.method == 'GET':
+ if request.method == 'GET' and\
+ ('date' in request.GET or 'time' in request.GET):
form = NopForm(request.GET)
if form.is_valid():
date = form.cleaned_data['date']