Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for #1609 - backwards compatibility for django 1.3 as well (set _…

…current_page)
  • Loading branch information...
commit f560aa4490cc34e35383f282e5f3413905c8f25d 1 parent fe6f6fd
Ioan Alexandru Cucu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/admin/pageadmin.py
2  cms/admin/pageadmin.py
View
@@ -530,7 +530,7 @@ def change_view(self, request, object_id, extra_context=None):
# determine if current user has enough rights to see PagePermissionInlineAdmin
# because in django versions <1.5 get_inline_instances doesn't receive 'obj'
# as a parameter, the workaround is to set it as an attribute...
- if DJANGO_1_4:
+ if DJANGO_1_4 or DJANGO_1_3:
self._current_page = obj
response = super(PageAdmin, self).change_view(request, object_id, extra_context=extra_context)
if tab_language and response.status_code == 302 and response._headers['location'][1] == request.path :
Please sign in to comment.
Something went wrong with that request. Please try again.