Skip to content
Browse files

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

  • Loading branch information...
1 parent d8f3b34 commit fb64f53c698caefcad5aa3fa3a195b82ac32cf32 @mvdwaeter mvdwaeter committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 fiber/models.py
View
2 fiber/models.py
@@ -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
@@ -85,6 +86,7 @@ class Page(MPTTModel):
content_items = models.ManyToManyField(ContentItem, through='PageContentItem', verbose_name=_('content items'))
metadata = JSONField(blank=True, null=True, schema=METADATA_PAGE_SCHEMA, prefill_from='fiber.models.Page')
+ tree = TreeManager()
objects = managers.PageManager()
class Meta:

0 comments on commit fb64f53

Please sign in to comment.
Something went wrong with that request. Please try again.