|
|
@@ -19,6 +19,7 @@ from dcim.choices import CableLengthUnitChoices, WeightUnitChoices
|
|
|
from extras.plugins import PluginConfig
|
|
|
from extras.utils import is_taggable
|
|
|
from netbox.config import get_config
|
|
|
+from urllib.parse import urlencode
|
|
|
from utilities.constants import HTTP_REQUEST_META_SAFE_COPY
|
|
|
|
|
|
|
|
|
@@ -353,7 +354,7 @@ def prepare_cloned_fields(instance):
|
|
|
params.append((key, ''))
|
|
|
|
|
|
# Return a QueryDict with the parameters
|
|
|
- return QueryDict('&'.join([f'{k}={v}' for k, v in params]), mutable=True)
|
|
|
+ return QueryDict(urlencode(params), mutable=True)
|
|
|
|
|
|
|
|
|
def shallow_compare_dict(source_dict, destination_dict, exclude=None):
|