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