equal
deleted
inserted
replaced
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.") |