added device button under platform view pre-populated role field instead of platform field

This commit is contained in:
yash-pal1 2023-09-27 15:45:46 +05:30 committed by Jeremy Stretch
parent 5cb1a6b790
commit 6dc560596d

View File

@ -13,7 +13,7 @@
{% block extra_controls %}
{% if perms.dcim.add_device %}
<a href="{% url 'dcim:device_add' %}?role={{ object.pk }}" class="btn btn-sm btn-primary">
<a href="{% url 'dcim:device_add' %}?platform={{ object.pk }}" class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add Device" %}
</a>
{% endif %}