feat: add the new reminders app

This commit is contained in:
Daniel Quinn
2017-03-25 16:21:46 +00:00
parent 27db4f7e51
commit b876a0d0df
13 changed files with 127 additions and 0 deletions

14
src/reminders/filters.py Normal file
View 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"]
}