feat: add the new reminders app
This commit is contained in:
14
src/reminders/filters.py
Normal file
14
src/reminders/filters.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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"]
|
||||
}
|
||||
Reference in New Issue
Block a user