mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
15 lines
365 B
Python
15 lines
365 B
Python
from django_filters.rest_framework import CharFilter, FilterSet
|
|
|
|
from .models import Reminder
|
|
|
|
|
|
class ReminderFilterSet(FilterSet):
|
|
|
|
class Meta(object):
|
|
model = Reminder
|
|
fields = {
|
|
"document": ["exact"],
|
|
"date": ["gt", "lt", "gte", "lte", "exact"],
|
|
"note": ["istartswith", "iendswith", "icontains"]
|
|
}
|