From c5d341d79dc87b01c5804218ec24d20c1f0e9dac Mon Sep 17 00:00:00 2001 From: Hans Lo Date: Thu, 28 Mar 2013 04:15:53 -0400 Subject: [PATCH] Use WTForms data field in user_pages/views.py Missed case in a previous commit. --- mediagoblin/user_pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.25.1