app/soc/logic/cleaning.py
changeset 905 70eb2493a346
parent 902 0cc7a76f0eb3
child 928 df051fc9d7a1
equal deleted inserted replaced
904:a6397daf4006 905:70eb2493a346
    54       raise forms.ValidationError("This user does not exist.")
    54       raise forms.ValidationError("This user does not exist.")
    55   
    55   
    56     return user_entity
    56     return user_entity
    57   return wrapped
    57   return wrapped
    58 
    58 
    59 def clean_existing_user_not_equal_to_current(field_name):
    59 def clean_users_not_same(field_name):
    60   """Check if the field_name field is a valid user and is not 
    60   """Check if the field_name field is a valid user and is not 
    61      equal to the current user.
    61      equal to the current user.
    62   """
    62   """
    63 
    63 
    64   def wrapped(self):
    64   def wrapped(self):