Skip to content

Commit

Permalink
django-tree-queries 0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Mar 26, 2024
1 parent bc17cd4 commit 13303c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ Change log
Next version
~~~~~~~~~~~~


0.17 (2024-03-26)
~~~~~~~~~~~~~~~~~

- Preserved the tree ordering even when using ``.values()`` or
``.values_list()``. Thanks Glenn Matthews!
- Added support for descending sibling ordering, multi-field sibling ordering,
and related field sibling ordering. Thanks rhomboss!


0.16 (2023-11-29)
Expand Down
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ table expressions. Supports PostgreSQL, sqlite3 (3.8.3 or higher) and
MariaDB (10.2.2 or higher) and MySQL (8.0 or higher, if running without
``ONLY_FULL_GROUP_BY``).

Supports Django 2.2 or better, Python 3.6 or better. See the GitHub actions
Supports Django 3.2 or better, Python 3.8 or better. See the GitHub actions
build for more details.

Features and limitations
Expand Down Expand Up @@ -60,8 +60,7 @@ Usage
order tree siblings by a specific model field. Note that Django's standard
``order_by()`` method isn't supported -- nodes are returned according to the
`depth-first search algorithm
<https://en.wikipedia.org/wiki/Depth-first_search>`__. It's not possible to
order siblings by more than one field either.
<https://en.wikipedia.org/wiki/Depth-first_search>`__.
- Create a manager using
``TreeQuerySet.as_manager(with_tree_fields=True)`` if you want to add
tree fields to queries by default.
Expand Down
2 changes: 1 addition & 1 deletion tree_queries/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.16.1"
__version__ = "0.17.0"

0 comments on commit 13303c3

Please sign in to comment.