code: def clean(self):
          '''Check to make sure password fields match.'''
          data = super(PasswordMixin, self).clean()
          if 'password' in data and 'confirm_password' in data:
              if data['password'] != data['confirm_password']:
                  raise ValidationError(_('Passwords do not match.'))
          return datf clean(self):
          '''Check to make sure password fields match.'''
          data = super(PasswordMixin, self).clean()
          if 'password' in data and 'confirm_password' in data:
              if data['password'] != data['confirm_password']:
                  raise ValidationError(_('Passwords do not match.'))
          return data
docs: Check to make sure password fields match.