Revision: 633
Author: chris.vigelius
Date: Fri Aug  7 03:54:33 2009
Log: quick fix for issue #141 (PageAlias.get_for_url => PageAlias.from_path


http://code.google.com/p/django-page-cms/source/detail?r=633

Modified:
  /trunk/pages/templatetags/pages_tags.py

=======================================
--- /trunk/pages/templatetags/pages_tags.py     Thu Jul 23 06:21:29 2009
+++ /trunk/pages/templatetags/pages_tags.py     Fri Aug  7 03:54:33 2009
@@ -219,7 +219,7 @@
              context['pages'] = Page.objects.navigation()
          request = context['request']
          if (not context.has_key('current_page')):
-            alias = PageAlias.objects.get_for_url(request, request.path)
+            alias = PageAlias.objects.from_path(request, request.path)
              if alias:
                  context['current_page'] = alias.page
          return ''

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