Top "Django-mptt" questions

django-mptt is an implementation Modified Preorder Tree Traversal for handling trees of Django Model instances.

Django - How to get self.id when saving a new object?

I have a problem in one of my models. I'm uploading an image, and I want to store the id (…

django django-models django-mptt
operational error - no such table - Django, mptt

I'm running into a DB related problem in Django that I don't understand. I define an MPTT model like so: …

python django sqlite django-mptt operationalerror
How do I rebuild my django-mptt tree?

I'm using django-mptt 0.4.2, and want to rebuild a tree. The tree manager has a method rebuild() which I try to …

django django-mptt
How do I query objects of all children of a node with Django mptt?

I am trying to get the objects of all the children of a given node on Django with django-mppt I …

python django tree-traversal django-mptt mptt
How to serialize hierarchical relationship in Django REST

I have a Django model that is hierarchical using django-mptt, which looks like: class UOMCategory(MPTTModel, BaseModel): """ This represents categories …

python django serialization django-rest-framework django-mptt