mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Optimize tag population under prepare_cloned_fields()
This commit is contained in:
parent
0f1a4740d5
commit
152bf17871
@ -213,9 +213,9 @@ def prepare_cloned_fields(instance):
|
|||||||
if field_value not in (None, ''):
|
if field_value not in (None, ''):
|
||||||
params[field_name] = field_value
|
params[field_name] = field_value
|
||||||
|
|
||||||
# Copy tags
|
# Copy tags
|
||||||
if is_taggable(instance):
|
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()])
|
||||||
|
|
||||||
# Concatenate parameters into a URL query string
|
# Concatenate parameters into a URL query string
|
||||||
param_string = '&'.join(
|
param_string = '&'.join(
|
||||||
|
Loading…
Reference in New Issue
Block a user