Questions tagged [django-mptt]

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

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

Useful links:

351 questions
0
votes
1 answer

Django MPTT fail with auth.view.login View

I'm having problem with Django MPTT using django.contrib.auth.view.login View, In urls.py there is (r'^accounts/login/$', django.contrib.auth.view.login), and my template registration/login.html extends base template-login.html: {% extends…
Zed
  • 5,683
  • 11
  • 49
  • 81
0
votes
2 answers

Django ModelForm ValueError

I have a Django Model class Category(MPTTModel): name = models.CharField(max_length=50, unique=True) parent = TreeForeignKey('self', null=True, blank=True, related_name='children') def __unicode__(self): return self.name …
Zed
  • 5,683
  • 11
  • 49
  • 81
0
votes
1 answer

Django-mptt does not display "name" attribute

I think I am following the doc correctly but still le* weird problem occurs : MPTT template tag displays the tree nicely, indented and all, but not node.name tag (empty) My Model class Forme(MPTTModel): name = models.CharField(max_length=50,…
Matthieu
  • 1,084
  • 12
  • 23
0
votes
2 answers

How does one use Django-MPTT with multiple trees?

I'm planning to use Django MPTT with a multi-tenant architecture, so there will be many site home pages, and I'd like not to have to rebuild the entire page table's mptt feilds every time a user changes the location of their About Us page. I'd…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
-1
votes
1 answer

There's some sort of error with django MPTT implementation

I'm a newbie to django world. While doing and academic project i'm required to implement tree structure in django. The concept is to make a user hierarchy so that one use can come as subordinate of another user. Here is my models.py from django.db…
-1
votes
1 answer

Your idea ?! ... does "django-mptt" fit this Course Structure system?

Let's consider a Course Structure for a Learning Management System (call it an online school). We have something like this : Course 1 Topic 1 Sub-Topic 1-1 sub-Topic 1-2 Topic 2 Sub-Topic 2-1 Sub-Topic…
Soask
  • 691
  • 12
  • 21
1 2 3
23
24