mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
prepare_cloned_fields() should always return a QueryDict
This commit is contained in:
@ -286,7 +286,7 @@ def prepare_cloned_fields(instance):
|
|||||||
"""
|
"""
|
||||||
# Generate the clone attributes from the instance
|
# Generate the clone attributes from the instance
|
||||||
if not hasattr(instance, 'clone'):
|
if not hasattr(instance, 'clone'):
|
||||||
return None
|
return QueryDict()
|
||||||
attrs = instance.clone()
|
attrs = instance.clone()
|
||||||
|
|
||||||
# Prepare querydict parameters
|
# Prepare querydict parameters
|
||||||
|
Reference in New Issue
Block a user