Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231.

This commit is contained in:
Roberto Rosario
2015-10-23 06:06:59 -04:00
parent 414c55f824
commit da4c41c5b2
16 changed files with 395 additions and 141 deletions
+17
View File
@@ -0,0 +1,17 @@
from __future__ import unicode_literals
from django.utils.translation import ugettext
class DocumentException(Exception):
"""
Base documents warning
"""
pass
class NewDocumentVersionNotAllowed(DocumentException):
"""
Uploading new versions for this document is not allowed
"""
pass