aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Lo <hansshulo@gmail.com>2013-03-28 04:15:53 -0400
committerHans Lo <hansshulo@gmail.com>2013-03-28 04:26:48 -0400
commitc5d341d79dc87b01c5804218ec24d20c1f0e9dac (patch)
treea8c8629b18b3efe417b2cc07009b7baecb8e3c5e
parent9d140cb8429166bfb2cb8937ad820f906767747b (diff)
downloadmediagoblin-c5d341d79dc87b01c5804218ec24d20c1f0e9dac.tar.lz
mediagoblin-c5d341d79dc87b01c5804218ec24d20c1f0e9dac.tar.xz
mediagoblin-c5d341d79dc87b01c5804218ec24d20c1f0e9dac.zip
Use WTForms data field in user_pages/views.py
Missed case in a previous commit.
-rw-r--r--mediagoblin/user_pages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index 09ec7df9..61c23f16 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -204,7 +204,7 @@ def media_collect(request, media):
# If we are here, method=POST and the form is valid, submit things.
# 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
existing_collection = Collection.query.filter_by(
creator=request.user.id,