mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Fixed #1571 -- Added missing breadcrumbs to admin delete-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
This commit is contained in:
parent
4b37f265ad
commit
59f47eaf1f
@ -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> ›
|
||||
<a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> ›
|
||||
<a href="../">{{ object|striptags|truncatewords:"18" }}</a> ›
|
||||
{% 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>
|
||||
|
@ -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 ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user