فهرست منبع

prepare_cloned_fields() should always return a QueryDict

jeremystretch 3 سال پیش
والد
کامیت
c11af40a06
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netbox/utilities/utils.py

+ 1 - 1
netbox/utilities/utils.py

@@ -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