diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-03-04 11:45:14 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-03-04 11:45:14 -0600 |
commit | e9b69c7d0eb00426ee06e4d83f8e1841b421deb2 (patch) | |
tree | fa4e2457fbc6a4faebae44c602b87fc543fec3f4 | |
parent | 7e4a87dca5c8afa13b64f76c4b9ce440d38a91b5 (diff) | |
download | mediagoblin-e9b69c7d0eb00426ee06e4d83f8e1841b421deb2.tar.lz mediagoblin-e9b69c7d0eb00426ee06e4d83f8e1841b421deb2.tar.xz mediagoblin-e9b69c7d0eb00426ee06e4d83f8e1841b421deb2.zip |
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!
-rw-r--r-- | mediagoblin/user_pages/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |