File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ def get_month_range():
74
74
views.py
75
75
76
76
` ` ` python
77
+ from django.db.models import F, Aggregate
77
78
from django.template.response import TemplateResponse
78
79
79
80
from .date_utils import get_month_range
@@ -92,7 +93,7 @@ def range_of_visitors_this_month(request):
92
93
" " "
93
94
template = " base.html"
94
95
95
- context = Event.objects.filter(period__overlaps =get_month_range()).aggregate(
96
+ context = Event.objects.filter(period__overlap =get_month_range()).aggregate(
96
97
output=Aggregate(F(" potential_visitors" ), function=" range_merge" )
97
98
)
98
99
Original file line number Diff line number Diff line change 2
2
Enables the range_merge Aggregate for Django on Postgres
3
3
"""
4
4
5
- __version__ = "0.2.5 "
5
+ __version__ = "0.2.6 "
6
6
7
7
default_app_config = "django_range_merge.apps.DjangoRangeMergeConfig" # pylint: disable=invalid-name
You can’t perform that action at this time.
0 commit comments