Permalink
Browse files

Fix for issue #38: Incompatible with django-mptt 0.5-pre

  • Loading branch information...
1 parent 38b28da commit 6e3954f424653647b89e3f9016183ae22f59556a @mvdwaeter mvdwaeter committed Nov 8, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 fiber/models.py
View
@@ -7,6 +7,7 @@
from django.utils.translation import ugettext
from django.utils.translation import ugettext_lazy as _
+from mptt.managers import TreeManager
from mptt.models import MPTTModel
from app_settings import IMAGES_DIR, FILES_DIR, METADATA_PAGE_SCHEMA, METADATA_CONTENT_SCHEMA
@@ -78,6 +79,7 @@ class Page(MPTTModel):
metadata = JSONField(blank=True, null=True, schema=METADATA_PAGE_SCHEMA, prefill_from='fiber.models.Page')
objects = managers.PageManager()
+ tree = TreeManager()
class Meta:
verbose_name = _('page')

0 comments on commit 6e3954f

Please sign in to comment.