All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.22.1 - 2023-09-20
- Increase
tn_priority
max value to9999999999
to allow nodes sorting by timestamp. (by @simensol in #166) - Bump test requirements.
- Bump
pre-commit
hooks.
0.22.0 - 2023-01-31
- Ensure cache has been updated, otherwise log a warning.
- Fix tree methods not working if cache is not configured correctly.
- Code refactoring.
- Bump requirements.
- Bump
pre-commit
hooks. - Bump GitHub action.
0.21.0 - 2023-12-05
- Add
Python 3.12
support. - Add
Django 5.0
support. - Speed-up test workflow.
- Bump requirements.
- Bump
pre-commit
hooks.
0.20.2 - 2023-09-26
- Use specific database for write operations in multi-database setup. #123 (by @Nathan-Cohen in #124)
- Bump requirements and
pre-commit
hooks.
0.20.1 - 2023-06-02
- Fix
AttributeError: 'NoneType' object has no attribute 'get_parent_pk'
when loading fixtures. #88 - Fix model tree update when receiving
post_migrate
signal.
0.20.0 - 2023-05-29
- Add
pyupgrade
(Python >= 3.8
) topre-commit
config. - Add
Django 4.2
support and dropDjango 2.2
support. - Add
django-upgrade
(Django >= 3.2
) topre-commit
hooks. - Add
metadata
module. - Add locales support.
- Add string primary key support. #81
- Fix XSS vulnerability in
get_display_text
method. - Replace
str.format
withf-string
. - Replace
flake8
withRuff
. - Replace
setup.py
in favor ofpyproject.toml
. - Run
pre-commit
also withtox
. - Pin test requirements.
- Bump requirements and
pre-commit
hooks. - Rename default branch from
master
tomain
.
0.19.0 - 2022-12-14
- Add
Python 3.11
anddjango 4.1
support. - Drop
Python < 3.8
andDjango < 2.2
support. #67 - Add
pre-commit
. - Bump requirements and actions.
- Replace
str.format
withf-strings
. - Replace
setup.py test
in favor ofruntests.py
.
0.18.2 - 2022-07-19
- Improved
get_breadcrumbs
performance.
0.18.1 - 2021-12-22
- Fixed positive integer fields for big trees. #51
0.18.0 - 2021-12-08
- Added django 4.0 compatibility.
- Added
cascade
option todelete
method. #40 - Added documentation for bulk operations. #41 #42 #45
- Removed console verbose logging. #36
- Removed display fallback to str method due to recursion error.
- Fixed order field too small for big trees. #44
- Fixed tests auto-field warning.
0.17.1 - 2021-12-07
- Replaced travis CI with GitHub workflow.
- Added python 3.10 support.
- Added feature: use
__str__
as default fallback fortreenode_display_field
. - Fixed backward compatibility.
0.17.0 - 2021-06-11
- Added handling for
UUID
primary keys (thanks to @cperrin88). #31 - Reduced admin changelist queries.
- Added
TreeNodeModel
utility methods and properties to retrieve only pk(s):- method
get_ancestors_pks()
/ propertyancestors_pks
- method
get_children_pks()
/ propertychildren_pks
- method
get_descendants_pks()
/ propertydescendants_pks
- method
get_parent_pk()
/ propertyparent_pk
- method
get_root_pk()
/ propertyroot_pk
- method
get_siblings_pks()
/ propertysiblings_pks
- method
0.16.0 - 2021-04-21
- Added
python 3.9
anddjango 3.2
totox
andtravis
. - Added
get_display_text
method. #27 - Fixed
TreeNodeModelAdmin
duplicated query. - Updated
debug_performance
decorator to work only ifsettings.DEBUG = True
.
0.15.0 - 2020-09-16
- Added custom
cache
back-end support. #19 #24 - Fixed tests warning (admin.W411).