diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 1d00683012..930db7767e 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -702,6 +702,7 @@ class ModelAdmin(BaseModelAdmin): from django.contrib.admin.models import LogEntry model = self.model opts = model._meta + app_label = opts.app_label action_list = LogEntry.objects.filter( object_id = object_id, content_type__id__exact = ContentType.objects.get_for_model(model).id @@ -714,6 +715,7 @@ class ModelAdmin(BaseModelAdmin): 'module_name': capfirst(force_unicode(opts.verbose_name_plural)), 'object': obj, 'root_path': self.admin_site.root_path, + 'app_label': app_label, } context.update(extra_context or {}) return render_to_response(self.object_history_template or [ diff --git a/django/contrib/admin/templates/admin/object_history.html b/django/contrib/admin/templates/admin/object_history.html index c37012b296..5c357b224d 100644 --- a/django/contrib/admin/templates/admin/object_history.html +++ b/django/contrib/admin/templates/admin/object_history.html @@ -2,7 +2,13 @@ {% load i18n %} {% block breadcrumbs %} -
+ {% endblock %} {% block content %}