Ignore:
Timestamp:
20 Sep 2013, 16:51:08 (11 years ago)
Author:
Henrik Bettermann
Message:

PREJAMBITES must not edit 'firstname', 'middlename', 'lastname', 'sex', 'jamb_score'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py

    r10590 r10628  
    4646    value for value in UG_OMIT_EDIT_FIELDS
    4747        if not value in ('jamb_subjects', 'jamb_score')]
     48
     49PREJAMBITES_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + [
     50    'firstname',
     51    'middlename',
     52    'lastname',
     53    'sex', 'jamb_score'
     54    ]
    4855
    4956class CustomApplicantsContainerPage(ApplicantsContainerPage):
     
    136143            for field in ND_OMIT_EDIT_FIELDS:
    137144                form_fields = form_fields.omit(field)
     145        elif self.target is not None and self.target.startswith('prejambites'):
     146            for field in PREJAMBITES_OMIT_EDIT_FIELDS:
     147                form_fields = form_fields.omit(field)
    138148        else:
    139149            for field in UG_OMIT_EDIT_FIELDS:
Note: See TracChangeset for help on using the changeset viewer.