Ignore:
Timestamp:
24 Feb 2017, 09:24:09 (8 years ago)
Author:
Henrik Bettermann
Message:

Replace maxCreditsExceeded by warnCreditsOOR.

File:
1 edited

Legend:

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

    r14571 r14585  
    445445        return text
    446446
    447     def maxCredits(self, studylevel):
    448         """Return maximum credits.
    449 
    450         """
    451         return 48
     447    def warnCreditsOOR(self, studylevel, course=None):
     448        if course and studylevel.total_credits + course.credits > 48:
     449            return  _('Maximum credits exceeded.')
     450        elif studylevel.total_credits > 48:
     451            return _('Maximum credits exceeded.')
     452        return
    452453
    453454    def getBedCoordinates(self, bedticket):
Note: See TracChangeset for help on using the changeset viewer.