Ignore:
Timestamp:
11 Apr 2021, 10:17:28 (4 years ago)
Author:
Henrik Bettermann
Message:

Add key field to CertificateExporter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/export.py

    r15496 r16450  
    166166
    167167    fields = ('code', 'faculty_code', 'department_code', 'title', 'study_mode',
    168               'degree',
     168              'degree','key',
    169169              'start_level', 'end_level', 'application_category', 'ratio',
    170170              'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4',
     
    179179        which is the code of the department that offers the certificate.
    180180        """
     181        if name == 'key':
     182            value = context.__name__
    181183        return super(CertificateExporter, self).mangle_value(
    182184            value, name, context)
Note: See TracChangeset for help on using the changeset viewer.