Add default message to the exception

This commit is contained in:
Roberto Rosario
2014-11-04 17:37:22 -04:00
parent 1287cca3ac
commit 57eb4df1ba

View File

@@ -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.')