Skip to content

Commit

Permalink
fix: link to delete view in entity edit template
Browse files Browse the repository at this point in the history
Closes: #437
  • Loading branch information
koeaw authored and b1rger committed Dec 13, 2023
1 parent 8a2cf38 commit 5503a6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ <h4 class="card-title">
data-tooltip='{"app":"apis_entities","kind":"{{ entity_type|lower }}","pk":"{{ instance.pk }}"}'>
Revisions
</button>
<a class ="btn btn-danger btn-primary" href="delete">Delete</a>
<a class="btn btn-danger btn-primary"
href="{% url 'apis:apis_entities:generic_entities_delete_view' entity=entity_type pk=instance.pk %}">Delete</a>
<a class="btn btn-success"
href="{% url 'apis:apis_entities:generic_entities_create_view' entity_type %}">Create new {{ entity_type|title }}</a>
</div>
Expand Down

0 comments on commit 5503a6d

Please sign in to comment.