Changeset 17645 for main


Ignore:
Timestamp:
16 Nov 2023, 07:28:00 (13 months ago)
Author:
Henrik Bettermann
Message:

Add missing definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17644 r17645  
    211211        d['enddate'] = hostels.enddate
    212212        d['expired'] = hostels.expired
     213        studycourse = student['studycourse']
     214        certificate = getattr(studycourse,'certificate',None)
     215        entry_session = studycourse.entry_session
     216        current_level = studycourse.current_level
     217        if None in (entry_session, current_level, certificate):
     218            return d
     219        end_level = certificate.end_level
    213220        # Determine bed type
    214221        if entry_session == grok.getSite()['hostels'].accommodation_session:
Note: See TracChangeset for help on using the changeset viewer.