diff --git a/mayan/apps/checkouts/exceptions.py b/mayan/apps/checkouts/exceptions.py index c0119f6d7e..46378eca0b 100644 --- a/mayan/apps/checkouts/exceptions.py +++ b/mayan/apps/checkouts/exceptions.py @@ -1,3 +1,6 @@ +from django.utils.translation import ugettext + + class DocumentNotCheckedOut(Exception): """ Raised when trying to checkin a document that is not checkedout @@ -9,4 +12,5 @@ class DocumentAlreadyCheckedOut(Exception): """ Raised when trying to checkout an already checkedout document """ - pass + def __unicode__(self): + return ugettext('Document already checked out.')