Use WTForms data field in user_pages/views.py
Missed case in a previous commit.
This commit is contained in:
parent
9d140cb842
commit
c5d341d79d
@ -204,7 +204,7 @@ def media_collect(request, media):
|
|||||||
|
|
||||||
# If we are here, method=POST and the form is valid, submit things.
|
# If we are here, method=POST and the form is valid, submit things.
|
||||||
# If the user is adding a new collection, use that:
|
# If the user is adding a new collection, use that:
|
||||||
if request.form['collection_title']:
|
if form.collection_title.data:
|
||||||
# Make sure this user isn't duplicating an existing collection
|
# Make sure this user isn't duplicating an existing collection
|
||||||
existing_collection = Collection.query.filter_by(
|
existing_collection = Collection.query.filter_by(
|
||||||
creator=request.user.id,
|
creator=request.user.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user