burke-software / django-mass-edit

Make bulk changes in the Django admin interface
152 stars 67 forks source link

Incompatibility with custom AdminSite overriding each_context #84

Closed Doatti closed 4 years ago

Doatti commented 4 years ago

We are using a custom AdminSite, where the each_context() is overridden to add some additional context variables. Our base_site.html template then uses these variables. This causes an error when rendering the mass change view, because it doesn't include the context variables from the each_context() function.

Here's an example showing how Django's default admin views use each_context(): https://github.com/django/django/blob/2.2.11/django/contrib/admin/options.py#L1616

I will post a PR with a fix for this soon.