Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(models): (re)introduce some convenience methods for working with scope trees #476

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

winged
Copy link
Contributor

@winged winged commented Jun 10, 2024

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"

@winged winged changed the title feat(models): (re)introduce some convenience methods for working with… feat(models): (re)introduce some convenience methods for working with scope trees Jun 10, 2024
@winged winged force-pushed the feat_convenience_methods branch 8 times, most recently from a9cc84b to 7bbd61d Compare June 11, 2024 14:18
@winged winged marked this pull request as ready for review June 11, 2024 14:19
emeis/core/models.py Outdated Show resolved Hide resolved
… 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"
@winged winged enabled auto-merge June 12, 2024 11:31
@maria-pw
Copy link

LGTM

@winged winged disabled auto-merge June 12, 2024 11:47
@winged winged merged commit 538b4df into projectcaluma:main Jun 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants