Ignore:
Timestamp:
21 Nov 2012, 20:54:11 (12 years ago)
Author:
Henrik Bettermann
Message:

If suspended_comment is set this message will be flashed instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r9701 r9705  
    259259                        return
    260260                    # Now we know that the student is suspended.
    261                     self.flash(_('Your account has been deactivated.'))
     261                    comment = getattr(student, 'suspended_comment', None)
     262                    if comment:
     263                        self.flash(comment)
     264                    else:
     265                        self.flash(_('Your account has been deactivated.'))
    262266                    return
    263267            self.flash(_('You entered invalid credentials.'))
Note: See TracChangeset for help on using the changeset viewer.