Ignore:
Timestamp:
12 Nov 2015, 09:06:14 (9 years ago)
Author:
Henrik Bettermann
Message:

Add special handling category ekenwan.

Only ug_ft students are allowed to book acommodation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r13444 r13446  
    6565            else:
    6666                return _("Outside booking period.")
     67        if student.current_mode != 'ug_ft':
     68            return _("Only undergraduate full-time students are eligible to book accommodation.")
    6769        bt = acc_details.get('bt')
    6870        if not bt:
     
    125127        if student.faccode in ('MED', 'DEN'):
    126128            special_handling = 'clinical'
     129        elif student.certcode in ('BARTMAS', 'MARTTHR', 'BARTFAA'):
     130            special_handling = 'ekenwan'
    127131        d['bt'] = u'%s_%s_%s' % (special_handling,sex,bt)
    128132        return d
Note: See TracChangeset for help on using the changeset viewer.