A few minor tweaks to the backend

This commit is contained in:
Trenton H
2023-01-30 14:37:09 -08:00
parent d15773f282
commit 94db39e055
4 changed files with 10 additions and 30 deletions

View File

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