Add default message to the exception
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
from django.utils.translation import ugettext
|
||||||
|
|
||||||
|
|
||||||
class DocumentNotCheckedOut(Exception):
|
class DocumentNotCheckedOut(Exception):
|
||||||
"""
|
"""
|
||||||
Raised when trying to checkin a document that is not checkedout
|
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
|
Raised when trying to checkout an already checkedout document
|
||||||
"""
|
"""
|
||||||
pass
|
def __unicode__(self):
|
||||||
|
return ugettext('Document already checked out.')
|
||||||
|
|||||||
Reference in New Issue
Block a user