-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update change_form.html for newer Django versions
- Loading branch information
1 parent
539bf6e
commit 6decb8f
Showing
1 changed file
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
{% extends "admin/change_form.html" %} | ||
{% load staticfiles relatives %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
{% block field_sets %} | ||
{% related_objects adminform.form.instance as related_objects %} | ||
<div class="module grp-module" id="filter"> | ||
{% block relations %} | ||
<h2>Relations</h2> | ||
<ul> | ||
{% for related in related_objects %} | ||
<li> | ||
<a href="{{ related.url }}">{{ related.plural_name|capfirst }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock relations %} | ||
</div> | ||
{{ block.super }} | ||
<div class="module grp-module" id="filter"> | ||
{% block relations %} | ||
<h2>Relations</h2> | ||
<ul> | ||
{% for related in related_objects %} | ||
<li> | ||
<a href="{{ related.url }}">{{ related.plural_name|capfirst }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock relations %} | ||
</div> | ||
{% endblock content %} | ||
{{ block.super }} | ||
{% endblock field_sets %} | ||
|
||
{% block stylesheets %} | ||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link href="{% static 'css/relatives.css' %}" rel="stylesheet"> | ||
{% endblock stylesheets %} | ||
{% endblock extrastyle %} |