Introduce a common URL for the creation of image attachments

This commit is contained in:
jeremystretch
2021-10-01 12:34:30 -04:00
parent 257c0afdb5
commit 460e3fd5d6
7 changed files with 19 additions and 18 deletions

View File

@@ -299,7 +299,7 @@
</div>
{% if perms.extras.add_imageattachment %}
<div class="card-footer text-end noprint">
<a href="{% url 'dcim:device_add_image' object_id=object.pk %}" class="btn btn-primary btn-sm">
<a href="{% url 'extras:imageattachment_add' %}?content_type=dcim.device&object_id={{ object.pk }}" class="btn btn-primary btn-sm">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
Attach an Image
</a>