clokep / django-querysetsequence

Chain multiple (disparate) QuerySets in Django
https://django-querysetsequence.readthedocs.io/
ISC License
107 stars 25 forks source link

Fix an issue where slicing of an individual QuerySet was broken. #24

Closed clokep closed 7 years ago

clokep commented 7 years ago

This fixes #23 (and adds tests for it).

The fix is pretty much that if there's only a single QuerySet left, you need to slice both the start and end off at the same time, otherwise you trim improperly.

clokep commented 7 years ago

Just rebased this, so hopefully tests will pass.