Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Fix overlapping constraint for all-day Occurrences
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmurty committed Oct 18, 2016
1 parent d5a16a2 commit aff1be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icekit_events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aff1be4

Please sign in to comment.