Ignore:
Timestamp:
8 Oct 2015, 12:53:20 (9 years ago)
Author:
Henrik Bettermann
Message:

Omit faculty and department on clearance slips of JUPEB students.

File:
1 edited

Legend:

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

    r13300 r13303  
    128128    """
    129129
    130     omit_fields = ('password', 'suspended', 'suspended_comment',
    131         'phone', 'adm_code', 'email', 'date_of_birth')
     130    @property
     131    def omit_fields(self):
     132        omit_fields = ('password', 'suspended', 'suspended_comment',
     133                'phone', 'adm_code', 'email', 'date_of_birth')
     134        if self.context.faccode == 'JUPEB':
     135            omit_fields += ('faculty', 'department')
     136        return omit_fields
    132137
    133138    @property
Note: See TracChangeset for help on using the changeset viewer.