app/soc/views/models/sponsor.py
changeset 569 96d9655a7538
parent 564 d928d226cfad
child 583 12960609a69c
equal deleted inserted replaced
568:6713617751b4 569:96d9655a7538
    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):