equal
deleted
inserted
replaced
63 """Inner Meta class that defines some behavior for the form. |
63 """Inner Meta class that defines some behavior for the form. |
64 """ |
64 """ |
65 model = None |
65 model = None |
66 |
66 |
67 def clean_link_id(self): |
67 def clean_link_id(self): |
68 link_id = self.cleaned_data.get('link_id') |
68 link_id = self.cleaned_data.get('link_id').lower() |
69 if not validate.isLinkIdFormatValid(link_id): |
69 if not validate.isLinkIdFormatValid(link_id): |
70 raise forms.ValidationError("This link ID is in wrong format.") |
70 raise forms.ValidationError("This link ID is in wrong format.") |
71 |
71 |
72 properties = {'link_id': link_id} |
72 properties = {'link_id': link_id} |
73 user = soc.logic.models.user.logic.getForFields(properties, unique=True) |
73 user = soc.logic.models.user.logic.getForFields(properties, unique=True) |