Skip to content

Commit

Permalink
Correct remaining mistakes in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklinke committed Apr 27, 2022
1 parent 5f5bc6c commit 2d0579b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage_examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ Here we create 10 buckets with a step and span of 5, from 1 to 50.

```python
datetime_range_sequence = (
generate_series(1, 50, 5, 5, output_field=IntegerRangeField)
generate_series(0, 49, 5, 5, output_field=IntegerRangeField)
.annotate(ticket_quantities=Subquery(event_subquery))
.order_by("term")
)
Expand Down Expand Up @@ -540,7 +540,7 @@ FROM
SELECT
int4range(a, a + 5) AS term
FROM
generate_series(1, 49, 5) a
generate_series(0, 49, 5) a
) AS django_generate_series_integerrangefieldseries
ORDER BY
"django_generate_series_integerrangefieldseries"."term" ASC;
Expand Down

0 comments on commit 2d0579b

Please sign in to comment.