Releases: projectcaluma/emeis
v2.2.0
v2.1.0
Feature
- feat(models): (re)introduce some convenience methods for working with scope trees
The Django-MPTT module provided some useful methods that are not available anymore
with django-tree-queries. Luckily, it's relatively easy to provide workarounds.
Note that they might not have the same performance/efficiency as the
MPTT variants, and could possibly be built in a better way. However,
let's keep it to the motto "first make it right, then fast, then
pretty" (e2f38f1
)
v2.0.0
Refactor (Breaking change!)
- refactor: drop django-mptt in favour of django-tree-queries
Django-Tree-Queries works with recursive CTEs (common table expressions) to deal
with hierarchical relationships, generally achieving the same result, but without
the right
, left
and tree_id
fields.
Django-MPTT has been unmaintained for several years, and we're suspecting some
subtle bugs in it that we can't really reproduce or verify right now. Anyway it's
a good time to get rid of it.
Note: Some old migrations needed to be changed, as we cannot refer to
MPTT fields anymore. They were essentially regular foreign keys however,
so this won't break the database.
BREAKING! This breaks if Emeis is used as a Django app directly, and depends on
any of the MPTT API / features. (61a30e0
)