Skip to content

Commit

Permalink
refactor(relations): put relations in a block
Browse files Browse the repository at this point in the history
so that overriding col-one when customising the relations table is not
necessary.
  • Loading branch information
gythaogg committed Oct 22, 2024
1 parent 29b8038 commit 05e8876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{% extends "apis_core/apis_entities/abstractentity_detail.html" %}

{% block col-one %}
{% include "relations/list_relations_include.html" %}
{% block relations-include %}
{% include "relations/list_relations_include.html" %}
{% endblock relations-include %}

{{ block.super }}
{% endblock col-one %}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
{% endblock content %}

{% block col-one %}
{% include "relations/list_relations_include.html" with edit=True %}

{% block relations-include %}
{% include "relations/list_relations_include.html" with edit=True %}
{% endblock relations-include %}

{{ block.super }}
{% endblock col-one %}

Expand Down

0 comments on commit 05e8876

Please sign in to comment.