-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache invalidation for paginator implemented
- Loading branch information
Tolga Bilbey
committed
May 19, 2020
1 parent
34a799d
commit a405d76
Showing
3 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[metadata] | ||
name = django-fast-paginator | ||
version = v1.0.0 | ||
version = v1.0.1 | ||
description = A Django app to paginate querysets faster. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
author = Tolga Bilbey | ||
author_email = [email protected] | ||
license = BSD-3-Clause | ||
url = https://github.com/bilbeyt/django-fast-pagination | ||
download_url = https://github.com/bilbeyt/django-fast-pagination/archive/v1.0.0.tar.gz | ||
download_url = https://github.com/bilbeyt/django-fast-pagination/archive/v1.0.1.tar.gz | ||
keywords = | ||
django | ||
pagination | ||
|
There's no need to check all of these. I think you're only trying to support QuerySets and object lists. Then if you check if object_list is QuerySet you can directly call count, otherwise call len.