1
0
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:
jeremystretch
2022-07-01 13:52:37 -04:00
parent 12c138b341
commit c11af40a06

View File

@ -286,7 +286,7 @@ def prepare_cloned_fields(instance):
"""
# Generate the clone attributes from the instance
if not hasattr(instance, 'clone'):
return None
return QueryDict()
attrs = instance.clone()
# Prepare querydict parameters