summaryrefslogtreecommitdiff
path: root/nop/views.py
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-06-01 10:21:17 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-06-01 10:21:17 (GMT)
commitb0fc7daaaede72ceb38c00115b0a79fb600137d7 (patch)
tree41ab6bc25d244a5566139ce10e6cfc8dabfd112e /nop/views.py
parent533da937fc41513ec25f8e64294b135e42a24ceb (diff)
use GET instead of POST, since it simply works with deliverance
Diffstat (limited to 'nop/views.py')
-rw-r--r--nop/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/nop/views.py b/nop/views.py
index 6a88607..712be84 100644
--- a/nop/views.py
+++ b/nop/views.py
@@ -118,11 +118,12 @@ def get(request, year=None, month=None, day=None, hour=None, minute=None):
def nop_form(request):
context = {}
- context.update(csrf(request))
+ # currently no csrf security for nicier forms
+ #context.update(csrf(request)) # in django template: {% csrf_token %}
date = None
time = None
- if request.method == 'POST':
- form = NopForm(request.POST)
+ if request.method == 'GET':
+ form = NopForm(request.GET)
if form.is_valid():
date = form.cleaned_data['date']
time = form.cleaned_data['time']