Efficient tree implementations for Django
Clone or download
jrief Merge pull request #116 from schwobaseggl/patch-1
Pass kwargs to super as kwargs, not args
Latest commit 2b2e4ce Sep 18, 2018



django-treebeard is a library that implements efficient tree implementations for the Django Web Framework 1.8 and later.

It is written by Gustavo Picón and licensed under the Apache License 2.0.


https://readthedocs.org/projects/django-treebeard/badge/?version=latest https://travis-ci.org/django-treebeard/django-treebeard.svg?branch=master https://ci.appveyor.com/api/projects/status/mwbf062v68lhw05c?svg=true


django-treebeard is:

  • Flexible: Includes 3 different tree implementations with the same API:
    1. Adjacency List
    2. Materialized Path
    3. Nested Sets
  • Fast: Optimized non-naive tree operations
  • Easy: Uses Django Model Inheritance with abstract classes to define your own models.
  • Clean: Testable and well tested code base. Code/branch test coverage is above 96%. Tests are available in Jenkins:

You can find the documentation in


Supported versions

django-treebeard officially supports

  • Django 1.8 - 2.0
  • Python 2.7, 3.4, 3.5, 3.6
  • PostgreSQL, MySQL, SQLite database back-ends.