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 makemigrations --empty myapp
from closure_tree.migrations import CreateTreeClosure

class Migration(migrations.Migration):

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

    operations = [
        CreateTreeClosure('MyNode'),
    ]

Metadata

Release files for django-closure-tree 0.2.2

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

Source distribution (sdist)

Source distribution for django-closure-tree 0.2.2
File Size Uploaded Provenance
django-closure-tree-0.2.2.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.3 kB

Release files / django-closure-tree-0.2.2.tar.gz

Download URL django-closure-tree-0.2.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
da644183a371eeefcb8a52e01353c0899daaf66206ef162505b01683f9a145a0
BLAKE2b-256 checksum
How to use checksums
d9587aa3d1592666e733e9096dde4d0ce5157fbfbd618743b131d9139f58f027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_closure_tree-0.2.2-py2.py3-none-any.whl

Download URL django_closure_tree-0.2.2-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e26b7ee7ffa4d6dc6d6e583511973ed14a5a8bab83960dcaa0d92d4787b6d93a
BLAKE2b-256 checksum
How to use checksums
1e429ec5759cf9578e9f6497d4b0811b1c1b37972012f052aa0cef18c8a91f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-closure-tree 0.2.2

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.

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