diff options
| author | Zain Patel <zain.patel@quantumblack.com> | 2021-04-24 01:50:27 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-26 12:52:33 +0200 |
| commit | 0dfe88eaba551ab3ecec9a573d59e8d2fa3a8f94 (patch) | |
| tree | 647d97e250ecdc01d56520295f51ab6eaeb6864e /django/contrib/admin/options.py | |
| parent | fc9cbad880632e77a37957ba6686a72c2e7481e4 (diff) | |
[3.2.x] Fixed #32681 -- Fixed VariableDoesNotExist when rendering some admin template.
Regression in 84609b3205905097d7d3038d32e6101f012c0619.
Backport of 4e5bbb6ef2287126badd32842b239f4a8a7394ca from main.
Diffstat (limited to 'django/contrib/admin/options.py')
| -rw-r--r-- | django/contrib/admin/options.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index b286466fb5..c38901e874 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -1890,6 +1890,7 @@ class ModelAdmin(BaseModelAdmin): context = { **self.admin_site.each_context(request), 'title': title, + 'subtitle': None, 'object_name': object_name, 'object': obj, 'deleted_objects': deleted_objects, @@ -1930,6 +1931,7 @@ class ModelAdmin(BaseModelAdmin): context = { **self.admin_site.each_context(request), 'title': _('Change history: %s') % obj, + 'subtitle': None, 'action_list': action_list, 'module_name': str(capfirst(opts.verbose_name_plural)), 'object': obj, |
