mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Optimize tag population under prepare_cloned_fields()
This commit is contained in:
parent
a5512dd4c4
commit
7cf0e6034b
@ -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