Ignore:
Timestamp:
24 Jul 2019, 20:36:52 (5 years ago)
Author:
Henrik Bettermann
Message:

Export code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/export.py

    r15513 r15514  
    6161        """
    6262        if name in ('applicant_id', 'reg_number',
    63             'display_fullname', 'course1', 'course2') and context is not None:
     63            'display_fullname') and context is not None:
    6464            applicant = context.__parent__
    6565            value = getattr(applicant, name, None)
     66        if name in ('course1', 'course2') and context is not None:
     67            applicant = context.__parent__
     68            value = getattr(applicant, name.code, None)
    6669        return super(
    6770            CustomApplicantPaymentExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.