parameters: (self)
return_statement: return self.cleaned_data['username']
docstring: get user for this username
docstring_summary: get user for this username
docstring_tokens: get user for this username
function: def clean_username(self):
          """ get user for this username """
          if 'username' in self.cleaned_data:
              try:
                  self.user_cache = User.objects.get(
                          username = self.cleaned_data['username'])
              except:
                  raise forms.ValidationError(_("Incorrect username."))
          return self.cleaned_data['username']
function_tokens: def clean_username ( self ) : if 'username' in self . cleaned_data : try : self . user_cache = User . objects . get ( username = self . cleaned_data [ 'username' ] ) except : raise forms . ValidationError ( _ ( "Incorrect username." ) ) return self . cleaned_data [ 'username' ]