The django-treebeard app provides its own TreeAdmin, extending from the standard ModelAdmin. This allows you to view tree nodes hierarchically in the administration interface, with interface features dependent upon the tree algorithm used. Let's take a look at this in this recipe.
Creating a basic category administration interface with django-treebeard
Getting ready
First, set up the categories app and django-treebeard as described in the Creating hierarchical categories with django-treebeard recipe earlier in this chapter. Also, make sure that the static files for django-treebeard are available to your project:
(env)$ python manage.py collectstatic