mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 10:16:42 -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, ''):
|
||||
params[field_name] = field_value
|
||||
|
||||
# Copy tags
|
||||
if is_taggable(instance):
|
||||
params['tags'] = ','.join([t.name for t in instance.tags.all().unrestricted()])
|
||||
# Copy tags
|
||||
if is_taggable(instance):
|
||||
params['tags'] = ','.join([t.name for t in instance.tags.all().unrestricted()])
|
||||
|
||||
# Concatenate parameters into a URL query string
|
||||
param_string = '&'.join(
|
||||
|
Loading…
Reference in New Issue
Block a user