app/soc/views/user/profile.py
changeset 137 0f572149449d
parent 136 a95f511bfcf8
child 170 1fadf6e0348d
equal deleted inserted replaced
136:a95f511bfcf8 137:0f572149449d
    47     """
    47     """
    48     #: db.Model subclass for which the form will gather information
    48     #: db.Model subclass for which the form will gather information
    49     model = soc.models.user.User
    49     model = soc.models.user.User
    50     
    50     
    51     #: list of model fields which will *not* be gathered by the form
    51     #: list of model fields which will *not* be gathered by the form
    52     exclude = ['id', 'former_ids']
    52     exclude = ['id', 'former_ids', 'is_developer']
    53   
    53   
    54   def clean_link_name(self):
    54   def clean_link_name(self):
    55     link_name = self.cleaned_data.get('link_name')
    55     link_name = self.cleaned_data.get('link_name')
    56     if not id_user.isLinkNameFormatValid(link_name):
    56     if not id_user.isLinkNameFormatValid(link_name):
    57       raise forms.ValidationError("This link name is in wrong format.")
    57       raise forms.ValidationError("This link name is in wrong format.")