Merge "Change the super argument to use the current class"

This commit is contained in:
Jenkins 2016-03-30 15:17:14 +00:00 committed by Gerrit Code Review
commit 56f5ccf63a

View File

@ -44,7 +44,7 @@ class PasswordForm(forms.SelfHandlingForm):
def clean(self):
'''Check to make sure password fields match.'''
data = super(forms.Form, self).clean()
data = super(PasswordForm, self).clean()
if 'new_password' in data:
if data['new_password'] != data.get('confirm_password', None):
raise ValidationError(_('Passwords do not match.'))