diff options
author | Joar Wandborg <joar@wandborg.se> | 2013-03-02 23:40:24 +0100 |
---|---|---|
committer | Joar Wandborg <joar@wandborg.se> | 2013-03-02 23:42:03 +0100 |
commit | 77c85224b139a123e7895588af51b6cd4ecaa2b9 (patch) | |
tree | 379c94316976df5527d06f7e35b3dfd8989aea87 /mediagoblin/plugins/oauth/forms.py | |
parent | 56c113c77005a889834f43fb13549d531f391be4 (diff) | |
download | mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.tar.lz mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.tar.xz mediagoblin-77c85224b139a123e7895588af51b6cd4ecaa2b9.zip |
Fixed hidden fields in oauth client authorization
Removed the translation marking and passed in empty strings to avoid
WTForms automagically creating the labels from the field names (i.e.
client_id => 'Client Id').
Diffstat (limited to 'mediagoblin/plugins/oauth/forms.py')
-rw-r--r-- | mediagoblin/plugins/oauth/forms.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mediagoblin/plugins/oauth/forms.py b/mediagoblin/plugins/oauth/forms.py index 2a956dad..d0a4e9b8 100644 --- a/mediagoblin/plugins/oauth/forms.py +++ b/mediagoblin/plugins/oauth/forms.py @@ -23,10 +23,9 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _ class AuthorizationForm(wtforms.Form): - client_id = wtforms.HiddenField(_(u'Client ID'), - [wtforms.validators.Required()]) - next = wtforms.HiddenField(_(u'Next URL'), - [wtforms.validators.Required()]) + client_id = wtforms.HiddenField(u'', + validators=[wtforms.validators.Required()]) + next = wtforms.HiddenField(u'', validators=[wtforms.validators.Required()]) allow = wtforms.SubmitField(_(u'Allow')) deny = wtforms.SubmitField(_(u'Deny')) |