Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iNishant committed Apr 27, 2024
1 parent 491871c commit 82d8fad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ assert results == [list(queryset) for queryset in querysets]
Fetching count of queryset using `QuerysetCountWrapper` (since `queryset.count()` is not a lazy method)

```py
from service import QuerysetCountWrapper
from django_querysets_single_query_fetch.service import QuerysetsSingleQueryFetch, QuerysetCountWrapper

results = QuerysetsSingleQueryFetch(querysets=QuerysetCountWrapper(queryset=queryset1), queryset2, ...)
querysets = [QuerysetCountWrapper(queryset=queryset1), queryset2, ...]
results = QuerysetsSingleQueryFetch(querysets=querysets)

assert results == [queryset1.count(), list(queryset2), ...]
assert results == [queryset.count(), list(queryset2), ...]
```


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="django_querysets_single_query_fetch",
version="0.0.6",
version="0.0.7",
description="Execute multiple Django querysets in a single SQL query",
long_description="",
author="Nishant Singh",
Expand Down

0 comments on commit 82d8fad

Please sign in to comment.