Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix bug when queryset is empty #26

Closed
wants to merge 1 commit into from

Conversation

yaakovLowenstein
Copy link

When the queryset is empty, the str(object_list.query) raises an EmptyResultSet exception. This commit fixes the bug by catching the exception and setting the cache_pks_key and
cache_count_key attributes by default to None.

When the queryset is empty, the str(`object_list.query`) raises an
`EmptyResultSet` exception. This commit fixes the bug by catching
the exception and setting the `cache_pks_key` and
`cache_count_key` attributes by default to `None`.
@yaakovLowenstein
Copy link
Author

Fixes #25

@yaakovLowenstein
Copy link
Author

There are issues with this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant