Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored April 11, 2006
8  django/contrib/admin/templates/admin/delete_confirmation.html
... ...
@@ -1,6 +1,14 @@
1 1
 {% extends "admin/base_site" %}
2 2
 {% load i18n %}
3 3
 {% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
  4
+{% block breadcrumbs %}
  5
+<div class="breadcrumbs">
  6
+     <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
  7
+     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
  8
+     <a href="../">{{ object|striptags|truncatewords:"18" }}</a> &rsaquo;
  9
+     {% trans 'Delete' %}
  10
+</div>
  11
+{% endblock %}
4 12
 {% block content %}
5 13
 {% if perms_lacking %}
6 14
     <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>
1  django/contrib/admin/views/main.py
@@ -513,6 +513,7 @@ def delete_stage(request, app_label, model_name, object_id):
513 513
         "object": obj,
514 514
         "deleted_objects": deleted_objects,
515 515
         "perms_lacking": perms_needed,
  516
+        "opts": model._meta,
516 517
     }
517 518
     return render_to_response(["admin/%s/%s/delete_confirmation" % (app_label, opts.object_name.lower() ),
518 519
                                "admin/%s/delete_confirmation" % app_label ,

0 notes on commit 59f47ea

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