Permalink
Browse files

add explicit TreeManager to Page model - fixes #38

  • Loading branch information...
1 parent 704e312 commit 19bd54b39607766956cbf8f6035b2e18f6789700 @ghughes committed Oct 24, 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 19bd54b

Please sign in to comment.