django-mptt
How to build django-mptt tree without rebuilding after each insert?
I\'m building large mptt tree. I\'d like to insert all nodes and after that start method for rebuilding whole tree:[详细]
2023-03-30 23:01 分类:问答Django MPTT - absolute url for category
I have the following tree structure: Cat 1 --Sub Cat 开发者_StackOverflow中文版1 --Sub Cat 2 Cat 2 --Sub Cat 1[详细]
2023-03-16 21:52 分类:问答Django-MPTT - ordering root nodes by count of immediate descendants
I\'m using Django-MPTT to do a display a simple 2 level hierarchy (root => child(ren)). I\'m looking for a way to structure my queryset so that nodes get returned with the root node having the most ch[详细]
2023-03-16 12:28 分类:问答efficient function to retrieve a queryset of ancestors of an mptt queryset
Does anybody have an efficient algorithm to retrieve all ancestors of an mptt queryset? The best I could think of so far is something like this:[详细]
2023-03-15 01:10 分类:问答Why can't I save my model instances after editing them?
I have a model which I can instantiate just fine, but once created, if I attempt to save it I get an IntegrityError saying that the primary key must be unique.What\'s causing this?[详细]
2023-03-09 23:02 分类:问答show children nodes depending on selected parent
Hi i\'ve been looking all over and can\'t find the answer to this. I have only 3 months experience in using python/django so excuse my dummy quesion![详细]
2023-03-06 09:52 分类:问答Django-mptt and multiple parents?
I\'ve been banging my head against the desk for a couple weeks on this problem, so I figure it may be time to seek some help.[详细]
2023-03-01 08:53 分类:问答django-mptt ImportError
I have installed django-mptt and have followed the documentation regarding setting up a Django model for MPTT[详细]
2023-02-28 09:23 分类:问答Django MPTT order_by error
models.py class Category(MPTTModel): name = models.CharField(max_length=100) slug = models.SlugField(max_length=200, unique=True)[详细]
2023-02-25 22:51 分类:问答Is it possible to use django-mptt and GenericForeignKey?
The model I\'m using at the 开发者_高级运维moment essentially has three classes. A root class, a tree attached to the root class and a leaf node class that can be attached anywhere in the tree.[详细]
2023-02-25 10:02 分类:问答