Changeset 17892 for main


Ignore:
Timestamp:
16 Aug 2024, 04:52:55 (4 months ago)
Author:
Henrik Bettermann
Message:

Ivi: just like other levels final students maximum units should be 48

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r17878 r17892  
    535535        return text
    536536
    537     def warnCreditsOOR(self, studylevel, course=None):
     537    def deactivated_warnCreditsOOR(self, studylevel, course=None):
    538538        studycourse = studylevel.__parent__
    539539        certificate = getattr(studycourse,'certificate', None)
     
    549549            return  _('Maximum credits exceeded.')
    550550        elif studylevel.total_credits > limit:
     551            return _('Maximum credits exceeded.')
     552        return
     553
     554    def warnCreditsOOR(self, studylevel, course=None):
     555        if course and studylevel.total_credits + course.credits > 48:
     556            return _('Maximum credits exceeded.')
     557        elif studylevel.total_credits > 48:
    551558            return _('Maximum credits exceeded.')
    552559        return
Note: See TracChangeset for help on using the changeset viewer.