Author: batiste.bieler
Date: Sun Mar 8 13:28:32 2009
New Revision: 396
Modified:
trunk/pages/models.py
Log:
Fix a but with hidden pages
Modified: trunk/pages/models.py
==============================================================================
--- trunk/pages/models.py (original)
+++ trunk/pages/models.py Sun Mar 8 13:28:32 2009
@@ -100,7 +100,7 @@
def get_children_for_frontend(self):
"""Return children of the page for the frontend """
- children = self.get_children()
+ children = self.get_children().filter(status=self.PUBLISHED)
if settings.PAGE_USE_SITE_ID:
children = children.filter(sites=settings.SITE_ID)
return children
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---