Changeset 16775 for main


Ignore:
Timestamp:
2 Feb 2022, 13:08:50 (3 years ago)
Author:
Henrik Bettermann
Message:

Fix if statement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r16772 r16775  
    437437    @invariant
    438438    def type_of_order(applicant):
    439         if applicant.collected and applicant.order != 'o':
    440             raise Invalid(_("If you have collected transcript before, type of order must be 'original'."))
     439        if not applicant.collected and applicant.order != 'o':
     440            raise Invalid(_("If you haven't collected transcript before, type of order must be 'original'."))
    441441        if applicant.order == 'o' and applicant.charge.startswith('cert_'):
    442442            raise Invalid(_("You've selected the wrong transcript charge."))
Note: See TracChangeset for help on using the changeset viewer.