From f667d381798d780a45f3895ba04a873720261712 Mon Sep 17 00:00:00 2001
From: Kenneth Belitzky <kenny@belitzky.com>
Date: Sun, 11 Jul 2010 03:21:36 -0300
Subject: [PATCH] Closes #13629 - add app-model_name class to <body> tag
---
django/contrib/admin/options.py | 1 +
.../contrib/admin/templates/admin/change_list.html | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 1f8ff6d..11e1cd1 100644
a
|
b
|
class ModelAdmin(BaseModelAdmin):
|
1077 | 1077 | 'has_add_permission': self.has_add_permission(request), |
1078 | 1078 | 'root_path': self.admin_site.root_path, |
1079 | 1079 | 'app_label': app_label, |
| 1080 | 'opts': opts, |
1080 | 1081 | 'action_form': action_form, |
1081 | 1082 | 'actions_on_top': self.actions_on_top, |
1082 | 1083 | 'actions_on_bottom': self.actions_on_bottom, |
diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html
index 3b037e5..878b8e7 100644
a
|
b
|
|
33 | 33 | {% endif %}{% endif %} |
34 | 34 | {% endblock %} |
35 | 35 | |
36 | | {% block bodyclass %}change-list{% endblock %} |
| 36 | {% block bodyclass %}{{ app_label }}-{{ opts.object_name.lower }} change-list{% endblock %} |
37 | 37 | |
38 | 38 | {% if not is_popup %} |
39 | 39 | {% block breadcrumbs %} |