From e9b69c7d0eb00426ee06e4d83f8e1841b421deb2 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 4 Mar 2013 11:45:14 -0600 Subject: [PATCH] Elrond points out that we should use form.collection.data That's true; I'm not sure what it's fixing, but he thinks it's fixing something. Anyway, it's correct :) This commit sponsored by Philippe Gauthier. Thanks! --- mediagoblin/user_pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 80919d47..dc562084 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -227,7 +227,7 @@ def media_collect(request, media): # Otherwise, use the collection selected from the drop-down else: collection = Collection.query.filter_by( - id=request.form.get('collection'), + id=form.collection.data, creator=request.user.id).first() # Make sure the user actually selected a collection