mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Fix prepare_cloned_fields() inefficiency
This commit is contained in:
parent
58f4e3756c
commit
c7aa0a2321
@ -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().unrestricted()])
|
params['tags'] = ','.join([t.name for t in instance.tags.all().unrestricted()])
|
||||||
|
|
||||||
# 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