mirror of
https://github.com/django/django.git
synced 2025-10-01 06:21:20 +00:00
Url fixes
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
71f55b68b1
commit
f013d39c90
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
{% block breadcrumbs %}{% if not is_popup %}
|
{% block breadcrumbs %}{% if not is_popup %}
|
||||||
<div class="breadcrumbs">
|
<div class="breadcrumbs">
|
||||||
<a href="../../../">{% trans "Home" %}</a> ›
|
<a href="../../../">{% trans "Home" %}</a> ›
|
||||||
<a href="../">{{ bound_manipulator.verbose_name_plural|capfirst }}</a> ›
|
<a href="../../">{{ bound_manipulator.verbose_name_plural|capfirst }}</a> ›
|
||||||
{% if add %}{% trans "Add" %} {{ bound_manipulator.verbose_name }}{% else %}{{ bound_manipulator.original|striptags|truncatewords:"18" }}{% endif %}
|
{% if add %}{% trans "Add" %} {{ bound_manipulator.verbose_name }}{% else %}{{ bound_manipulator.original|striptags|truncatewords:"18" }}{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}{% endblock %}
|
{% endif %}{% endblock %}
|
||||||
|
|
|
@ -220,7 +220,7 @@ class ChangeList(object):
|
||||||
full_result_count, result_list, can_show_all, multi_page, paginator )
|
full_result_count, result_list, can_show_all, multi_page, paginator )
|
||||||
|
|
||||||
def url_for_result(self, result):
|
def url_for_result(self, result):
|
||||||
return "%s/" % getattr(result, self.pk_attname)
|
return "%s/change" % getattr(result, self.pk_attname)
|
||||||
|
|
||||||
def get_ordering(self):
|
def get_ordering(self):
|
||||||
lookup_opts, params = self.lookup_opts, self.params
|
lookup_opts, params = self.lookup_opts, self.params
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue