Changeset 16653 for main/kofacustom.iuokada/trunk
- Timestamp:
- 29 Sep 2021, 10:21:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/export.py
r16626 r16653 41 41 ))) + ( 42 42 'password', 'state', 'history', 'container_code', 'application_number', 43 'display_fullname', 'application_date', 'dep t',)43 'display_fullname', 'application_date', 'department', 'college',) 44 44 45 45 def mangle_value(self, value, name, context=None): 46 if name == 'dept'and context is not None:46 if name in ('department', 'college') and context is not None: 47 47 course_admitted = getattr(context, 'course_admitted', None) 48 48 if course_admitted is not None: 49 49 try: 50 value = course_admitted.__parent__.__parent__.code 50 if name == 'department': 51 value = course_admitted.__parent__.__parent__.title 52 else: 53 value = course_admitted.__parent__.__parent__.__parent__.title 51 54 except AttributeError: 52 55 value = 'N/A'
Note: See TracChangeset for help on using the changeset viewer.