From aff1be4a56e5e1a9d3b541b86f674520b7f9ac1e Mon Sep 17 00:00:00 2001 From: James Murty Date: Wed, 19 Oct 2016 08:30:08 +1100 Subject: [PATCH] Fix overlapping constraint for all-day Occurrences Following various fixes to generation of all-day occurrences we can now apply the appropriate constraint in the `overlapping` queryset method to return all-day occurrences on a given day. --- icekit_events/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icekit_events/models.py b/icekit_events/models.py index 37b29e2..b08ec69 100644 --- a/icekit_events/models.py +++ b/icekit_events/models.py @@ -677,7 +677,7 @@ def overlapping(self, start, end): # Exclusive for datetime, inclusive for date. models.Q(is_all_day=False, end__gt=start) | models.Q(is_all_day=True, - end__gt=zero_datetime(start)) # TODO: would be gte, except the generated days seem janky + end__gte=zero_datetime(start)) ) # This was: