Changelog¶
0.14 (2021-02-26)¶
Features¶
Bugfixes¶
- Support calling
filter()
withQ()
objects. Contributed by @jpic. (#76)
0.12 (2019-12-20)¶
0.11 (2019-04-25)¶
Miscellaneous¶
- Support Django 2.2. Contributed by @michael-k. (#51)
- Support Django REST Framework 3.9. Contributed by @michael-k. (#51)
- Support Python 3.7. Contributed by @michael-k. (#51)
- Drop support for Django REST Framework < 3.6.3. Contributed by @michael-k. (#51)
- Drop support for Python 3.4. Contributed by @michael-k. (#51)
0.10 (2018-10-09)¶
Features¶
- Support
first()
,last()
,latest()
, andearliest()
methods. (#40, #49) - Support the
&
and|
operators. (#41) - Support
defer()
andonly()
methods to control which fields are returned. (#44) - Support calling
using()
to switch databases for an entireQuerySetSequence
. (#44) - Support calling
extra()`, ``update()
, andannotate()
which get applied to eachQuerySet
. (#46, #47) - Support calling
explain()
on Django >= 2.1. (#48)
0.9 (2018-09-20)¶
Bugfixes¶
- Stop using the internals of QuerySet for better forward compatibility. This change
means that
QuerySetSequence
is no longer a sub-class ofQuerySet
and should improve interactions with other packages which modifyQuerySet
. (#38)
Miscellaneous¶
0.8 (2017-09-05)¶
Features¶
- Optimize iteration when not slicing a
QuerySetSequence
. Contributed by @EvgeneOskin. (#29)
Miscellaneous¶
- Support Django 1.11. Contributed by @michael-k. (#26, #32)
- Support Django REST Framework 3.5 and 3.6. (#26)
0.7.2 (2017-04-04)¶
0.7 (2016-10-20)¶
Features¶
- Allow filtering / querying / ordering by the order of the
QuerySets
in theQuerySetSequence
by using'#'
. This allows for additional optimizations when using third-party applications, e.g. Django REST Framework. (#10, #14, #15, #16) - Django REST Framework integration: includes a subclass of the
CursorPagination
from Django REST Framework underqueryset_sequence.pagination.SequenceCursorPagination
which is designed to work efficiently with aQuerySetSequence
by first ordering by internalQuerySet
, then by theordering
attribute. (#17) - Move
queryset_sequence
to an actual module in order to hide some implementation details. (#11)
0.6 (2016-06-07)¶
Features¶
- Allow specifying the
Model
to use when instantiating aQuerySetSequence
. This is required for compatibility with some third-party applications that check themodel
field for equality, e.g. when using theDjangoFilterBackend
with Django REST Framework. Contributed by @CountZachula. (#6) - Support
prefetch_related
. (#7)
0.5 (2016-02-21)¶
0.3 (2016-01-29)¶
Features¶
- Raises
NotImplementedError
forQuerySet
methods thatQuerySetSequence
does not implement. - Support
reverse()
to reverse the item ordering - Support
none()
to return anEmptyQuerySet
- Support
exists()
to check if aQuerySetSequence
has any results. - Support
select_related
to follow foreign-key relationships when generating results.
0.2.4 (2016-01-21)¶
Features¶
- Support
order_by()
that references a related model (e.g. aForeignKey
relationship usingfoo
orfoo_id
syntaxes) - Support
order_by()
that references a field on a related model (e.g.foo__bar
)
Miscellaneous¶
- Add support for Django 1.9.1
0.2 (2016-01-08)¶
Bugfixes¶
- Do not try to instantiate
EmptyQuerySet
.
Miscellaneous¶
- Fixed packaging for pypi.
0.1 (2016-01-07)¶
- Initial release to support Django 1.8.8
The initial commits on based on DjangoSnippets and other code:
- DjangoSnippet 1103 by mattdw.
- DjangoSnippet 1253 by
joonas and some bugfixes in the comments:
- Updated per comment 1553 by nosa_manuel.
- Updated per comment 4642 by esquevin.
- DjangoSnippet 1933 by t_rybik.
- django-ko-demo from The Atlantic by @fdintino.