Skip to main content

Django closure tree model.

Abstract base model for creating a Closure Tree using a recursive Postgres view.

http://schinckel.net/2016/01/27/django-trees-via-closure-view/

Usage

Inherit from the Node model:

from closure_tree.models import Node


class MyNode(Node):
    name = models.CharField(max_length=30)

Create migrations:

$ ./manage.py makemigrations

Add the CreateTreeClosure migration step:

$ ./manage.py makenigrations --empty myapp
from closure_tree.migrations import CreateTreeClosure

class Migration(migrations.Migration):

    dependencies = [
        ('dummy', '0001_initial'),
    ]

    operations = [
        CreateTreeClosure('MyNode'),
    ]

Metadata

Release files for closure-tree 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for closure-tree 0.1.0
File Size Uploaded Provenance Actions
closure_tree-0.1.0.tar.gz 4.0 kB Without provenance Details for closure_tree-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for closure-tree 0.1.0
File Interpreter ABI Platform Actions
closure_tree-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for closure_tree-0.1.0-py2.py3-none-any.whl

Total release size: 9.2 kB

Release files / closure_tree-0.1.0.tar.gz

Download URL closure_tree-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0eb9b6ca79e189b1d09b7fde87a13d74242a97e0637a6422d8c4e284d02e6955
BLAKE2b-256 checksum
How to use checksums
94b960829e75507737adba3a4a7ceae5bc04db98432fd9f8bc3be865914d6de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / closure_tree-0.1.0-py2.py3-none-any.whl

Download URL closure_tree-0.1.0-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c614c9f0e6ae6778099b45e8e0e89bf37dfab0d5c71b501d5a5e4e02be9129bc
BLAKE2b-256 checksum
How to use checksums
0157f0f81902e7ba326f1fc7bb2cbcca388c17182a79823796bd76345eff5f5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for closure-tree 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page