Skip to content

Commit

Permalink
Merge pull request #9563 from huntabyte/feature-9417
Browse files Browse the repository at this point in the history
Closes #9417: Pre-populate manufacturer when adding modules to devices
  • Loading branch information
jeremystretch committed Jun 20, 2022
2 parents 25128bd + 65683d0 commit 3434428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/tables/template_code.py
Expand Up @@ -385,7 +385,7 @@
<i class="mdi mdi-server-minus" aria-hidden="true" title="Remove module"></i>
</a>
{% else %}
<a href="{% url 'dcim:module_add' %}?device={{ record.device.pk }}&module_bay={{ record.pk }}&return_url={% url 'dcim:device_modulebays' pk=object.pk %}" class="btn btn-success btn-sm">
<a href="{% url 'dcim:module_add' %}?device={{ record.device.pk }}&module_bay={{ record.pk }}&manufacturer={{ object.device_type.manufacturer_id }}&return_url={% url 'dcim:device_modulebays' pk=object.pk %}" class="btn btn-success btn-sm">
<i class="mdi mdi-server-plus" aria-hidden="true" title="Install module"></i>
</a>
{% endif %}
Expand Down

0 comments on commit 3434428

Please sign in to comment.