Update cabinets and document_index api views docstrings. Update multi level docstrings as per Python best practices.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
f44fbe5687
commit
de65d96fe2
@@ -381,7 +381,6 @@ class APIDocumentTypeDocumentListView(generics.ListAPIView):
|
||||
"""
|
||||
Returns a list of all the documents of a particular document type.
|
||||
"""
|
||||
|
||||
filter_backends = (MayanObjectPermissionsFilter,)
|
||||
mayan_object_permissions = {'GET': (permission_document_view,)}
|
||||
serializer_class = DocumentSerializer
|
||||
|
||||
@@ -166,7 +166,6 @@ class DocumentTypeSelectForm(forms.Form):
|
||||
Form to select the document type of a document to be created, used
|
||||
as form #1 in the document creation wizard
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
user = kwargs.pop('user', None)
|
||||
logger.debug('user: %s', user)
|
||||
|
||||
@@ -154,7 +154,6 @@ class Document(models.Model):
|
||||
generated for each document. No two documents can ever have the same UUID.
|
||||
This ID is generated automatically.
|
||||
"""
|
||||
|
||||
uuid = models.UUIDField(default=uuid.uuid4, editable=False)
|
||||
document_type = models.ForeignKey(
|
||||
DocumentType, on_delete=models.CASCADE, related_name='documents',
|
||||
|
||||
@@ -119,7 +119,6 @@ class DocumentTestCase(BaseTestCase):
|
||||
Test document type trashing policies. Documents are moved to the
|
||||
trash, x amount of time after being uploaded
|
||||
"""
|
||||
|
||||
self.document_type.trash_time_period = 1
|
||||
# 'seconds' is not a choice via the model, used here for convenience
|
||||
self.document_type.trash_time_unit = 'seconds'
|
||||
@@ -142,7 +141,6 @@ class DocumentTestCase(BaseTestCase):
|
||||
Test document type deletion policies. Documents are deleted from the
|
||||
trash, x amount of time after being trashed
|
||||
"""
|
||||
|
||||
self.document_type.delete_time_period = 1
|
||||
# 'seconds' is not a choice via the model, used here for convenience
|
||||
self.document_type.delete_time_unit = 'seconds'
|
||||
|
||||
Reference in New Issue
Block a user