Changeset 13967 for main/waeup.aaue


Ignore:
Timestamp:
21 Jun 2016, 11:25:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Add two new application types.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

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

    r13772 r13967  
    176176            for field in PG_OMIT_DISPLAY_FIELDS:
    177177                form_fields = form_fields.omit(field)
    178         elif self.target is not None and self.target.startswith('ptee'):
     178        elif self.target is not None and self.target in ('ptee', 'ude'):
    179179            for field in PTEE_OMIT_DISPLAY_FIELDS:
    180180                form_fields = form_fields.omit(field)
     
    235235            for field in PG_OMIT_PDF_FIELDS:
    236236                form_fields = form_fields.omit(field)
    237         elif self.target is not None and self.target.startswith('ptee'):
     237        elif self.target is not None and self.target in ('ptee', 'ude'):
    238238            for field in PTEE_OMIT_PDF_FIELDS:
    239239                form_fields = form_fields.omit(field)
     
    266266            for field in PG_OMIT_MANAGE_FIELDS:
    267267                form_fields = form_fields.omit(field)
    268         elif self.target is not None and self.target.startswith('ptee'):
     268        elif self.target is not None and self.target in ('ptee', 'ude'):
    269269            for field in PTEE_OMIT_MANAGE_FIELDS:
    270270                form_fields = form_fields.omit(field)
     
    294294            for field in PG_OMIT_EDIT_FIELDS:
    295295                form_fields = form_fields.omit(field)
    296         elif self.target is not None and self.target.startswith('ptee'):
     296        elif self.target is not None and self.target in ('ptee', 'ude'):
    297297            for field in PTEE_OMIT_EDIT_FIELDS:
    298298                form_fields = form_fields.omit(field)
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py

    r13754 r13967  
    2828
    2929    APP_TYPES_DICT = {
     30        'utme': ['AAUE Admission Screening (UTME)', 'UTME'],
     31        'ude': ['AAUE Admission Screening (UDE)', 'UDE'],
    3032        'fp': ['Foundation Programmes', 'FND'],
    3133        'ptee': ['Part-Time Entrance Examination', 'PTEE'],
Note: See TracChangeset for help on using the changeset viewer.