app/soc/views/models/user.py
changeset 569 96d9655a7538
parent 567 53906b0456b7
child 586 a4a36b06a870
equal deleted inserted replaced
568:6713617751b4 569:96d9655a7538
   118     """
   118     """
   119     #: db.Model subclass for which the form will gather information
   119     #: db.Model subclass for which the form will gather information
   120     model = soc.models.user.User
   120     model = soc.models.user.User
   121 
   121 
   122     #: list of model fields which will *not* be gathered by the form
   122     #: list of model fields which will *not* be gathered by the form
   123     exclude = ['account', 'former_accounts', 'is_developer',
   123     exclude = ['account', 'former_accounts', 'is_developer']
   124                'inheritance_line']
       
   125 
   124 
   126   def clean_link_id(self):
   125   def clean_link_id(self):
   127     link_id = self.cleaned_data.get('link_id')
   126     link_id = self.cleaned_data.get('link_id')
   128     if not validate.isLinkIdFormatValid(link_id):
   127     if not validate.isLinkIdFormatValid(link_id):
   129       raise forms.ValidationError("This link ID is in wrong format.")
   128       raise forms.ValidationError("This link ID is in wrong format.")