Skip to content

Commit

Permalink
Merge pull request #5681 from timgraham/unused-var
Browse files Browse the repository at this point in the history
Removed unused context variables in Page change_view().
  • Loading branch information
yakky committed Sep 18, 2016
2 parents c4814a2 + 9c7cb10 commit f6e39ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cms/admin/pageadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,8 @@ def change_view(self, request, object_id, form_url='', extra_context=None):
context = {
'page': obj,
'CMS_PERMISSION': get_cms_setting('PERMISSION'),
'ADMIN_MEDIA_URL': settings.STATIC_URL,
'can_change': self.has_change_permission(request, obj=obj),
'can_change_permissions': self.has_change_permissions_permission(request, obj=obj),
'current_site_id': settings.SITE_ID,
}
context.update(extra_context or {})
extra_context = self.update_language_tab_context(request, obj, context)
Expand Down

0 comments on commit f6e39ae

Please sign in to comment.