I have this model:
class Category(models.Model):
name = models.CharField()
description = models.CharField(blank=True)
parent = models.ForeignKey('self', blank=True, null=True)
I want Django to sort the categories according to their hierarchy, for example:
I did some research and found 2 applications, treebeard.al_tree and Django MPTT, which are powerful, which can lead to reduced performance or complexity in maintenance.
I will show categories on the sidebar of the website and on the administration pages (including ForeignKey in the message model), there will be very few additions / modifications / exceptions for categories, mainly read-only, which should not have a big impact on performance.
Are there any other applications that offer this and easier than the above? Can I achieve this using Django without additional applications, using managers or something else?