Changeset 10643 for main/waeup.kwarapoly


Ignore:
Timestamp:
23 Sep 2013, 15:30:56 (11 years ago)
Author:
Henrik Bettermann
Message:

All 'pre' applicants must not edit name fields.

File:
1 edited

Legend:

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

    r10629 r10643  
    4747        if not value in ('jamb_subjects', 'jamb_score')]
    4848
    49 PREJAMBITES_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + [
     49PRE_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + [
    5050    'firstname',
    5151    'middlename',
     
    144144            for field in ND_OMIT_EDIT_FIELDS:
    145145                form_fields = form_fields.omit(field)
    146         elif self.target is not None and self.target.startswith('prejambites'):
    147             for field in PREJAMBITES_OMIT_EDIT_FIELDS:
     146        elif self.target is not None and self.target.startswith('pre'):
     147            for field in PRE_OMIT_EDIT_FIELDS:
    148148                form_fields = form_fields.omit(field)
    149149        else:
Note: See TracChangeset for help on using the changeset viewer.