Ignore:
Timestamp:
4 Oct 2019, 13:55:37 (5 years ago)
Author:
Henrik Bettermann
Message:

_student_per_school_exceeded affects only tpu applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py

    r15635 r15641  
    210210
    211211    def dataNotComplete(self, data):
    212         if self._student_per_school_exceeded(data):
    213             return ("1st Choice TPZ and School: "
    214                     "Maximum number of applications per school exceeded. "
    215                     "Please select another first choice school.")
     212        target = getattr(self.context.__parent__, 'prefix', None)
     213        if target == 'tpu':
     214            if self._student_per_school_exceeded(data):
     215                return ("1st Choice TPZ and School: "
     216                        "Maximum number of applications per school exceeded. "
     217                        "Please select another first choice school.")
    216218        super(CustomApplicantEditFormPage, self).dataNotComplete(data)
    217219        return
Note: See TracChangeset for help on using the changeset viewer.