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!
This commit is contained in:
Christopher Allan Webber 2013-03-04 11:45:14 -06:00
parent 7e4a87dca5
commit e9b69c7d0e

View File

@ -227,7 +227,7 @@ def media_collect(request, media):
# Otherwise, use the collection selected from the drop-down # Otherwise, use the collection selected from the drop-down
else: else:
collection = Collection.query.filter_by( collection = Collection.query.filter_by(
id=request.form.get('collection'), id=form.collection.data,
creator=request.user.id).first() creator=request.user.id).first()
# Make sure the user actually selected a collection # Make sure the user actually selected a collection