The django-mptt app comes with a simple model administration mixin that allows you to create the tree structure and list it with indentation. To reorder trees, you need to either create this functionality yourself or use a third-party solution. One app that can help you to create a draggable administration interface for hierarchical models is django-mptt-admin. Let's take a look at it in this recipe.
Creating a category administration interface with django-mptt-admin
Getting ready
First, set up the movies app as described in the Creating hierarchical categories with django-mptt recipe earlier in this chapter. Then, we need to have the django-mptt-admin app installed by performing the following steps:
- Install the app...