1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #9414: Add clone() method to NetBoxModel for copying instance attributes

This commit is contained in:
jeremystretch
2022-06-23 15:21:10 -04:00
parent 12bd3840f9
commit f9d81fd362
6 changed files with 60 additions and 22 deletions

View File

@@ -59,7 +59,7 @@ Context:
{# Extra buttons #}
{% block extra_controls %}{% endblock %}
{% if object.clone_fields and request.user|can_add:object %}
{% if request.user|can_add:object %}
{% clone_button object %}
{% endif %}
{% if request.user|can_change:object %}