Move new version creation blocking from the documents app to the checkouts app.
Closes GitLab #294.
This commit is contained in:
@@ -23,3 +23,10 @@ class DocumentAlreadyCheckedOut(DocumentCheckoutError):
|
||||
"""
|
||||
def __unicode__(self):
|
||||
return ugettext('Document already checked out.')
|
||||
|
||||
|
||||
class NewDocumentVersionNotAllowed(DocumentCheckoutError):
|
||||
"""
|
||||
Uploading new versions for this document is not allowed
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user