From 9261b6e68753172723796455820e1c86d0741f9a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 28 Jan 2019 04:52:05 -0400 Subject: [PATCH] Remove deprecation comment With the removal of the support for a related field in .restrict_queryset() the deprecation comment can now be removed. Signed-off-by: Roberto Rosario --- mayan/apps/acls/managers.py | 5 ----- mayan/apps/documents/exceptions.py | 8 -------- ...d_document_views.py => test_trashed_document_views.py} | 0 3 files changed, 13 deletions(-) delete mode 100644 mayan/apps/documents/exceptions.py rename mayan/apps/documents/tests/{test_deleted_document_views.py => test_trashed_document_views.py} (100%) diff --git a/mayan/apps/acls/managers.py b/mayan/apps/acls/managers.py index b60e301d79..54e6b2ace9 100644 --- a/mayan/apps/acls/managers.py +++ b/mayan/apps/acls/managers.py @@ -138,7 +138,6 @@ class AccessControlListManager(models.Manager): 'produce a queryset from which to .get() the corresponding ' 'object in the local code.', InterfaceWarning ) - queryset = self.restrict_queryset( permission=permission, queryset=obj._meta.default_manager.all(), user=user @@ -212,10 +211,6 @@ class AccessControlListManager(models.Manager): ) def restrict_queryset(self, permission, queryset, user): - # `related_field_name` is left only for compatibility with check_access - # once check_access() is removed the `related_field_name` argument - # will be removed too. - # Check directly granted permission via a role try: Permission.check_user_permission(permission=permission, user=user) diff --git a/mayan/apps/documents/exceptions.py b/mayan/apps/documents/exceptions.py deleted file mode 100644 index 80f86ad910..0000000000 --- a/mayan/apps/documents/exceptions.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import unicode_literals - - -class DocumentException(Exception): - """ - Base documents warning - """ - pass diff --git a/mayan/apps/documents/tests/test_deleted_document_views.py b/mayan/apps/documents/tests/test_trashed_document_views.py similarity index 100% rename from mayan/apps/documents/tests/test_deleted_document_views.py rename to mayan/apps/documents/tests/test_trashed_document_views.py