Skip to content

Commit

Permalink
Update change_form.html for newer Django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Aug 7, 2018
1 parent 539bf6e commit 6decb8f
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions relatives/templates/relatives/change_form.html
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 %}

0 comments on commit 6decb8f

Please sign in to comment.