parameters: (self)
return_statement: return cd
docstring: Validate fields to make sure everything's as expected.
      - postalcode is in right format and actually exists
      - service actually exists
docstring_summary: Validate fields to make sure everything's as expected.
      - postalcode is in right format and actually exists
      - service actually exists
docstring_tokens: Validate fields to make sure everything s as expected . - postalcode is in right format and actually exists - service actually exists
function: def clean(self):
      """
      Validate fields to make sure everything's as expected.
      - postalcode is in right format and actually exists
      - service actually exists
      """
      cd = self.cleaned_data
  
      if 'password' in cd and 'password_verify' in cd:
        if self.cleaned_data['password'] != self.cleaned_data['password_verify']:
          self._errors['password'] = forms.util.ErrorList(["Passwords don't match!"])
  
      else:
        self._errors['password'] = forms.util.ErrorList(["Please enter and confirm your password"])
  
  #      raise forms.ValidationError(_(u'Please enter and confirm your password'))
  
  
      return cd
function_tokens: def clean ( self ) : cd = self . cleaned_data if 'password' in cd and 'password_verify' in cd : if self . cleaned_data [ 'password' ] != self . cleaned_data [ 'password_verify' ] : self . _errors [ 'password' ] = forms . util . ErrorList ( [ "Passwords don't match!" ] ) else : self . _errors [ 'password' ] = forms . util . ErrorList ( [ "Please enter and confirm your password" ] ) #      raise forms.ValidationError(_(u'Please enter and confirm your password')) return cd