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

@@ -1,11 +1,7 @@
from django.contrib.auth.models import Group
from django.contrib.auth.models import User
from django_filters.rest_framework import FilterSet
CHAR_KWARGS = ["istartswith", "iendswith", "icontains", "iexact"]
ID_KWARGS = ["in", "exact"]
INT_KWARGS = ["exact", "gt", "gte", "lt", "lte", "isnull"]
DATE_KWARGS = ["year", "month", "day", "date__gt", "gt", "date__lt", "lt"]
from documents.filters import CHAR_KWARGS
class UserFilterSet(FilterSet):