Permalink
Browse files

Comment submission fix.

  • Loading branch information...
brodul committed Feb 9, 2013
1 parent b489550 commit bfff1635ebb362a2a8d33ab7051a44062357a20e
Showing with 1 addition and 2 deletions.
  1. +1 −2 shootout/views.py
View
@@ -130,7 +130,7 @@ class AddIdeaSchema(formencode.Schema):
@view_config(permission='post', route_name='idea_add',
renderer='templates/idea_add.pt')
def idea_add(request):
- target = request.GET.get('target')
+ target = request.POST.get('target') or request.GET.get('target')
session = DBSession()
if target:
target = Idea.get_by_id(target, with_joinedload=False)
@@ -293,4 +293,3 @@ def cloud_view(request):
cloud = sorted(totalcounts, key=itemgetter(0))
return render('templates/cloud.pt', {'cloud': cloud}, request)
-

0 comments on commit bfff163

Please sign in to comment.