Ignore:
Timestamp:
18 May 2022, 07:18:24 (2 years ago)
Author:
Henrik Bettermann
Message:

Copy applicant_id into reg_number field during student record creation if applicant's reg_number is not set.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r16937 r16955  
    441.7.2.dev0 (unreleased)
    55=======================
     6
     7* Copy applicant_id into reg_number field during student record creation,
     8  if reg_number is not set.
    69
    710* Show last student id on `StudentsContainerPage`.
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py

    r16598 r16955  
    188188            certificate = getattr(self, 'course_admitted', None)
    189189            mapping = self.applicant_student_mapping
     190        # Set (fallback) reg_number
     191        if self.reg_number is None:
     192            self.reg_number = self.applicant_id
    190193        # Does registration number exist?
    191194        student = createObject(u'waeup.Student')
Note: See TracChangeset for help on using the changeset viewer.