Skip to content

Commit

Permalink
Comment submission fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
brodul committed Feb 9, 2013
1 parent b489550 commit bfff163
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shootout/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.