Permalink
Browse files

fixing live() on pages

  • Loading branch information...
1 parent 12626c5 commit e5b953d826a5d090f3f6cdeadd88ee47981856ef James Cleveland committed Jun 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 suave/models.py
View
4 suave/models.py
@@ -160,6 +160,10 @@ class Page(MPTTModel, Displayable, MetaInfo):
related_name='children')
url = models.CharField(max_length=255, null=True, blank=True)
+ # Because we're not directly inheriting from Displayable, we need to make
+ # sure the default manager is set.
+ objects = PassThroughManager.for_queryset_class(SiteEntityQuerySet)()
+
def update_url(self, save=True):
self.url = self._url

0 comments on commit e5b953d

Please sign in to comment.