diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-30 14:42:45 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-30 14:42:45 +0100 |
commit | 4924b93bac328d9753f51ad9a3d3dd2dcb370871 (patch) | |
tree | 77a215d6be03d66f8a179d9f04e165a43f44a7d4 /mediagoblin/user_pages/views.py | |
parent | 047d8d5871ee8ee97ea52a78512fe5b2da51b8cc (diff) | |
parent | c5d341d79dc87b01c5804218ec24d20c1f0e9dac (diff) | |
download | mediagoblin-4924b93bac328d9753f51ad9a3d3dd2dcb370871.tar.lz mediagoblin-4924b93bac328d9753f51ad9a3d3dd2dcb370871.tar.xz mediagoblin-4924b93bac328d9753f51ad9a3d3dd2dcb370871.zip |
Merge remote-tracking branch 'JDShu/649_use_form_data_field'
* JDShu/649_use_form_data_field:
Use WTForms data field in user_pages/views.py
Use WTForms data field in auth/views.py
auth: whitespace cleanup in views.py
Use WTForms data field in plugins/oauth/views.py
Use WTForms data field in submit/views.py
Use WTForms data field in edit/views.py
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r-- | mediagoblin/user_pages/views.py | 2 |
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, |