Fix changlist TypeError. Return RequestContext as dict on changelist_view. Based on changes in Django 1.11 (https://docs.djangoproject.com/en/1.11/releases/1.11/#django-template-backends-django-template-render-prohibits-non-dict-context)

This commit is contained in:
Egor 2017-05-13 14:16:24 +07:00 committed by Brent O'Connor
parent 3c9cb2dec9
commit 926d85a04e

View file

@ -261,7 +261,7 @@ class TreeEditor(admin.ModelAdmin):
'admin/%s/%s/change_list.html' % (app_label, opts.object_name.lower()),
'admin/%s/change_list.html' % app_label,
'admin/change_list.html'
], context=context_instance)
], context=context_instance.flatten())
def changelist_view(self, request, extra_context=None, *args, **kwargs):
"""