app/soc/views/user/profile.py
changeset 224 35bf48c27eb6
parent 191 80f08751f1e5
child 245 b14c2c4d3484
equal deleted inserted replaced
223:a18e93e21672 224:35bf48c27eb6
    46     """
    46     """
    47     #: db.Model subclass for which the form will gather information
    47     #: db.Model subclass for which the form will gather information
    48     model = soc.models.user.User
    48     model = soc.models.user.User
    49     
    49     
    50     #: list of model fields which will *not* be gathered by the form
    50     #: list of model fields which will *not* be gathered by the form
    51     exclude = ['id', 'former_ids', 'is_developer']
    51     exclude = ['id', 'former_ids', 'is_developer', 'inheritance_line']
    52   
    52   
    53   def clean_link_name(self):
    53   def clean_link_name(self):
    54     link_name = self.cleaned_data.get('link_name')
    54     link_name = self.cleaned_data.get('link_name')
    55     if not id_user.isLinkNameFormatValid(link_name):
    55     if not id_user.isLinkNameFormatValid(link_name):
    56       raise forms.ValidationError("This link name is in wrong format.")
    56       raise forms.ValidationError("This link name is in wrong format.")