Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

magic-removal: Fixed #1571 -- Added missing breadcrumbs to admin dele…

…te-confirmation page. Thanks for reporting, bryan at fullfactor dot com

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 59f47eaf1f8c498b20c9cf908377350d747fcfb8 1 parent 4b37f26
@adrianholovaty adrianholovaty authored
View
8 django/contrib/admin/templates/admin/delete_confirmation.html
@@ -1,6 +1,14 @@
{% extends "admin/base_site" %}
{% load i18n %}
{% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+ <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
+ <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
+ <a href="../">{{ object|striptags|truncatewords:"18" }}</a> &rsaquo;
+ {% trans 'Delete' %}
+</div>
+{% endblock %}
{% block content %}
{% if perms_lacking %}
<p>{% blocktrans %}Deleting the {{ object_name }} '{{ object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}</p>
View
1  django/contrib/admin/views/main.py
@@ -513,6 +513,7 @@ def delete_stage(request, app_label, model_name, object_id):
"object": obj,
"deleted_objects": deleted_objects,
"perms_lacking": perms_needed,
+ "opts": model._meta,
}
return render_to_response(["admin/%s/%s/delete_confirmation" % (app_label, opts.object_name.lower() ),
"admin/%s/delete_confirmation" % app_label ,

0 comments on commit 59f47ea

Please sign in to comment.
Something went wrong with that request. Please try again.