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