Recent Actions links have an unecessary '/admin/' ?
Pressing on a link of recent actions (i.e. object change) results in a broken url. By replacing line 12 of recent_actions.html with the following snippet the issue is resolved:
<a href="{{ child.get_admin_url }}" class="{% if child.is_addition %} addlink{% endif %}{% if child.is_change %} changelink{% endif %}">{% if child.content_type %}{% filter capfirst %}{% trans child.content_type.name %}{% endfilter %} {% endif %}{{ child.object_repr }}</a>
The original statement in line 12 was: <a href="{{ admin_url }}{{ child.get_admin_url }}" class="{% if child.is_addition %} addlink{% endif %}{% if child.is_change %} changelink{% endif %}">{% if child.content_type %}{% filter capfirst %}{% trans child.content_type.name %}{% endfilter %} {% endif %}{{ child.object_repr }}amnon</a>
Please feel free to contact me at amnon.janiv@ondalear.com
Regards, Amnon
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Having same problems with my Django 1.6.1 project.