app/soc/logic/cleaning.py
changeset 967 be5f5533a07f
parent 928 df051fc9d7a1
child 1013 68c52d6b3fb4
equal deleted inserted replaced
966:d45172b64f2b 967:be5f5533a07f
   100     # LinkProperty does not accept the empty string so we must return None
   100     # LinkProperty does not accept the empty string so we must return None
   101     if not value or value == u'':
   101     if not value or value == u'':
   102       return None
   102       return None
   103 
   103 
   104     # call the Django URLField cleaning method to properly clean/validate this field
   104     # call the Django URLField cleaning method to properly clean/validate this field
   105     return forms.URLField.clean(self, value)
   105     return forms.URLField.clean(self.fields[field_name], value)
   106   return wrapped
   106   return wrapped
   107 
   107