django-mptt
Custom Chainable QuerySet
This is a piece of my code from django.db import models from django.db.models.query import QuerySet from mptt.models import MPTTModel[详细]
2023-02-25 01:43 分类:问答Django-MPTT, how to
Hey, I have just installed the django-mptt lib, but i don\'t know how to get it to work :( I have added[详细]
2023-02-17 10:04 分类:问答Ordering django-mptt foreign key in admin not working
Am using django-mptt to create a Categories model and then using that as a foreign key for a Documents model.The Categories admin works fine and categories are displayed in tree order as expected.Howe[详细]
2023-02-17 02:26 分类:问答Is it possible to integrate django-taggit and django-mptt / django-treebeard?
I am developing a website that requires tagging up different types of content, which favors using django-taggit. But, it would be extremely beneficial if the tags were represented in the database in t[详细]
2023-02-10 18:01 分类:问答Django: Best way for simple hierarchy?
I have this model: class Category(models.Model): name = models.CharField() description = models.CharField(blank=True)[详细]
2023-01-28 04:27 分类:问答django-mptt children selection works on localhost but not on server
I have the same code on localhost and on server (thanks to mercurial), but it works a little bit different. I want to render category and its subcategories in template using this code:[详细]
2023-01-09 03:12 分类:问答Including foreign key count in django mptt full tree listing?
I\'m spitting out my categories tree like so: <div id=\"categories-tree\"> {% load mptt_tags %} {% full_tree_for_model bugs.Category as cats cumalative count bugs.Bug.categories %}[详细]
2023-01-07 09:29 分类:问答django-mptt fields showing up twice, breaking SQL
I\'m using django-mptt to manage a simple CMS, with a model called Page, which looks like this (most presumably irrelevant fields removed):[详细]
2022-12-28 06:55 分类:问答Storing hierarchical (parent/child) data in Python/Django: MPTT alternative?
I\'m looking for a good way to store and use hierarchical (parent/child) data in Django. I\'ve been using django-mptt, but it seems entirely incompatible with my brain - I end up with non-obvious bugs[详细]
2022-12-28 03:24 分类:问答Django-mptt completely buggy or am I doing it wrong?
I\'m attempting to use django-mptt with very little luck. This is with Python2.5, windows, sqlite3, Django 1.2pre , django-mptt latest from 开发者_开发技巧svn.[详细]
2022-12-18 21:10 分类:问答