Explorar el Código

Allow unrestricted access to assigned tags

Jeremy Stretch hace 5 años
padre
commit
adf0255bdf
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      netbox/templates/extras/inc/tags_panel.html
  2. 1 1
      netbox/utilities/utils.py

+ 1 - 1
netbox/templates/extras/inc/tags_panel.html

@@ -4,7 +4,7 @@
         <strong>Tags</strong>
     </div>
     <div class="panel-body">
-        {% for tag in tags %}
+        {% for tag in tags.unrestricted %}
             {% tag tag url %}
         {% empty %}
             <span class="text-muted">No tags assigned</span>

+ 1 - 1
netbox/utilities/utils.py

@@ -215,7 +215,7 @@ def prepare_cloned_fields(instance):
 
         # Copy tags
         if is_taggable(instance):
-            params['tags'] = ','.join([t.name for t in instance.tags.all()])
+            params['tags'] = ','.join([t.name for t in instance.tags.all().unrestricted()])
 
     # Concatenate parameters into a URL query string
     param_string = '&'.join(