changed occurances of form.data['whatever'] to form.whatever.data

Conflicts:
	mediagoblin/plugins/basic_auth/__init__.py
	mediagoblin/plugins/openid/__init__.py
This commit is contained in:
Rodney Ewing
2013-05-23 13:18:47 -07:00
parent 94d77e1fc1
commit 569873d8f0
2 changed files with 12 additions and 11 deletions

View File

@@ -90,9 +90,9 @@ def no_auth_logout(request):
def basic_extra_validation(register_form, *args):
users_with_username = User.query.filter_by(
username=register_form.data['username']).count()
username=register_form.username.data).count()
users_with_email = User.query.filter_by(
email=register_form.data['email']).count()
email=register_form.email.data).count()
extra_validation_passes = True