app/soc/views/models/user.py
changeset 650 33b6dcae5615
parent 629 492df53e4a0f
child 656 a76f1b443ea4
equal deleted inserted replaced
649:95a41542e693 650:33b6dcae5615
    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)