Skip to content

Commit

Permalink
Make correction to example
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklinke committed Oct 11, 2022
1 parent 93fdfbe commit eb2e1a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def get_month_range():
views.py
```python
from django.db.models import F, Aggregate
from django.template.response import TemplateResponse
from .date_utils import get_month_range
Expand All @@ -92,7 +93,7 @@ def range_of_visitors_this_month(request):
"""
template = "base.html"
context = Event.objects.filter(period__overlaps=get_month_range()).aggregate(
context = Event.objects.filter(period__overlap=get_month_range()).aggregate(
output=Aggregate(F("potential_visitors"), function="range_merge")
)
Expand Down
2 changes: 1 addition & 1 deletion django_range_merge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Enables the range_merge Aggregate for Django on Postgres
"""

__version__ = "0.2.5"
__version__ = "0.2.6"

default_app_config = "django_range_merge.apps.DjangoRangeMergeConfig" # pylint: disable=invalid-name

0 comments on commit eb2e1a5

Please sign in to comment.