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 <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-28 04:52:05 -04:00
parent 33e0e694e3
commit 9261b6e687
3 changed files with 0 additions and 13 deletions

View File

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

View File

@@ -1,8 +0,0 @@
from __future__ import unicode_literals
class DocumentException(Exception):
"""
Base documents warning
"""
pass