Author: batiste.bieler
Date: Sat Jun  6 05:35:28 2009
New Revision: 548

Modified:
    trunk/pages/views.py

Log:
Activate redirection by default

Modified: trunk/pages/views.py
==============================================================================
--- trunk/pages/views.py        (original)
+++ trunk/pages/views.py        Sat Jun  6 05:35:28 2009
@@ -48,8 +48,7 @@
          lang = get_language_from_request(request, current_page)

      if current_page.redirect_to:
-        # return this object if you want to activate redirections
-        http_redirect = HttpResponsePermanentRedirect(
+        return HttpResponsePermanentRedirect(
              current_page.redirect_to.get_absolute_url(lang))

      template_name = current_page.get_template()

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