mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
A few minor tweaks to the backend
This commit is contained in:
parent
d15773f282
commit
94db39e055
4 changed files with 10 additions and 30 deletions
|
|
@ -11,6 +11,7 @@ from .models import Log
|
|||
from .models import StoragePath
|
||||
from .models import Tag
|
||||
|
||||
|
||||
CHAR_KWARGS = ["istartswith", "iendswith", "icontains", "iexact"]
|
||||
ID_KWARGS = ["in", "exact"]
|
||||
INT_KWARGS = ["exact", "gt", "gte", "lt", "lte", "isnull"]
|
||||
|
|
@ -137,7 +138,7 @@ class StoragePathFilterSet(FilterSet):
|
|||
}
|
||||
|
||||
|
||||
class ObjectOwnedOrGrandtedPermissionsFilter(ObjectPermissionsFilter):
|
||||
class ObjectOwnedOrGrantedPermissionsFilter(ObjectPermissionsFilter):
|
||||
"""
|
||||
A filter backend that limits results to those where the requesting user
|
||||
has read object level permissions, owns the objects, or objects without
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue