Author: batiste.bieler
Date: Tue Jun 16 12:01:46 2009
New Revision: 568

Modified:
    trunk/pages/models.py

Log:
Fix the bug when choosen template doesn't reflect on placeholder in the  
admin interface because of some cache issue

Modified: trunk/pages/models.py
==============================================================================
--- trunk/pages/models.py       (original)
+++ trunk/pages/models.py       Tue Jun 16 12:01:46 2009
@@ -105,7 +105,7 @@
      calculated_status = property(get_calculated_status)

      def get_children_for_frontend(self):
-        """Return children of the page for the frontend """
+        """Return the published children of the page for the frontend """
          return Page.objects.filter_published(self.get_children())

      def invalidate(self, language_code=None):
@@ -186,7 +186,7 @@
          defined or DEFAULT_PAGE_TEMPLATE otherwise
          """
          if self.template:
-            template = self.template
+            return self.template

          template = cache.get(self.PAGE_TEMPLATE_KEY % (self.id))
          if template:
@@ -211,7 +211,6 @@
              if t[0] == template:
                  return t[1]
          return template
-

      def traductions(self):
          langs = ""

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to