Author: batiste.bieler
Date: Sat May  9 04:01:21 2009
New Revision: 519

Modified:
    branches/electron/pages/admin/__init__.py

Log:
Remove a forgotten print, remove uneeded order_by

Modified: branches/electron/pages/admin/__init__.py
==============================================================================
--- branches/electron/pages/admin/__init__.py   (original)
+++ branches/electron/pages/admin/__init__.py   Sat May  9 04:01:21 2009
@@ -74,7 +74,6 @@
          )]

      def __call__(self, request, url):
-        print url

          # Delegate to the appropriate method, based on the URL.
          if url is None:
@@ -106,8 +105,7 @@
          elif url.endswith('/change-status-hidden'):
              return change_status(request, unquote(url[:-21]), Page.HIDDEN)
          ret = super(PageAdmin, self).__call__(request, url)
-
-
+
          """
          Persist the language and template GET arguments, both on "save and  
keep
          editing" and when switching language and template (which also  
submits)
@@ -365,9 +363,9 @@

          if q:
              page_ids = list(set([c.page.pk for c in  
Content.objects.filter(body__icontains=q)]))
-            pages =  
Page.objects.filter(pk__in=page_ids).order_by("tree_id")
+            pages = Page.objects.filter(pk__in=page_ids)
          else:
-            pages = Page.objects.root().order_by("tree_id")
+            pages = Page.objects.root()

          context = {
              'name': _("page"),
@@ -375,7 +373,6 @@
              'opts': self.model._meta
          }

-
          context.update(extra_context or {})
          change_list = self.changelist_view(request, context)


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