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/plugins | |
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/plugins')
-rw-r--r-- | mediagoblin/plugins/oauth/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/plugins/oauth/views.py b/mediagoblin/plugins/oauth/views.py index c7b2a332..ea45c209 100644 --- a/mediagoblin/plugins/oauth/views.py +++ b/mediagoblin/plugins/oauth/views.py @@ -45,11 +45,11 @@ def register_client(request): if request.method == 'POST' and form.validate(): client = OAuthClient() - client.name = unicode(request.form['name']) - client.description = unicode(request.form['description']) - client.type = unicode(request.form['type']) + client.name = unicode(form.name.data) + client.description = unicode(form.description.data) + client.type = unicode(form.type.data) client.owner_id = request.user.id - client.redirect_uri = unicode(request.form['redirect_uri']) + client.redirect_uri = unicode(form.redirect_uri.data) client.generate_identifier() client.generate_secret() |