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:
parent
7e4a87dca5
commit
e9b69c7d0e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user