Browse Source

fix: 修复自定义 applet 导入的 bug

pull/12526/head
ibuler 11 months ago committed by Bryan
parent
commit
bab5b67c52
  1. 1
      apps/assets/serializers/platform.py

1
apps/assets/serializers/platform.py

@ -191,7 +191,6 @@ class PlatformSerializer(ResourceLabelsMixin, WritableNestedModelSerializer):
def add_type_choices(self, name, label):
tp = self.fields['type']
tp.choices[name] = label
tp.choice_mapper[name] = label
tp.choice_strings_to_values[name] = label
@lazyproperty

Loading…
Cancel
Save