equal
deleted
inserted
replaced
50 """ |
50 """ |
51 #: db.Model subclass for which the form will gather information |
51 #: db.Model subclass for which the form will gather information |
52 model = soc.models.sponsor.Sponsor |
52 model = soc.models.sponsor.Sponsor |
53 |
53 |
54 #: list of model fields which will *not* be gathered by the form |
54 #: list of model fields which will *not* be gathered by the form |
55 exclude = ['scope', 'scope_path', 'founder', 'inheritance_line', 'home'] |
55 exclude = ['scope', 'scope_path', 'founder', 'home'] |
56 |
56 |
57 # TODO(pawel.solyga): write validation functions for other fields |
57 # TODO(pawel.solyga): write validation functions for other fields |
58 def clean_link_id(self): |
58 def clean_link_id(self): |
59 link_id = self.cleaned_data.get('link_id') |
59 link_id = self.cleaned_data.get('link_id') |
60 if not validate.isLinkIdFormatValid(link_id): |
60 if not validate.isLinkIdFormatValid(link_id): |