diff --git a/apps/assets/const/types.py b/apps/assets/const/types.py index cde7c8aba..a18caa7b2 100644 --- a/apps/assets/const/types.py +++ b/apps/assets/const/types.py @@ -306,10 +306,11 @@ class AllTypes(ChoicesMixin): protocols_data = deepcopy(default_protocols) if _protocols: protocols_data = [p for p in protocols_data if p['name'] in _protocols] + for p in protocols_data: setting = _protocols_setting.get(p['name'], {}) - p['required'] = p.pop('required', False) - p['default'] = p.pop('default', False) + p['required'] = setting.pop('required', False) + p['default'] = setting.pop('default', False) p['setting'] = {**p.get('setting', {}), **setting} platform_data = {