From ca5e40bdce689ba725c57fe28c4dee9981ff2775 Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Sun, 16 Jun 2024 00:42:52 +0200 Subject: [PATCH] More filters --- main/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/views.py b/main/views.py index 7886cd4..7cbf18f 100644 --- a/main/views.py +++ b/main/views.py @@ -213,8 +213,8 @@ class Meta: fields = { 'name': ['iexact', 'icontains'], 'description': ['icontains'], - 'start_date': ['date', 'date__gte', 'lt', 'lte', 'gt', 'gte'], - 'end_date': ['date', 'date__lte', 'lt', 'lte', 'gt', 'gte'], + 'start_date': ['date', 'date__lte', 'date__gte', 'lt', 'lte', 'gt', 'gte'], + 'end_date': ['date', 'date__lte', 'date__gte', 'lt', 'lte', 'gt', 'gte'], 'bar': ['exact'], 'bar__name': ['iexact', 'icontains'], }