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

pull/12526/head
ibuler 11 months ago committed by Bryan
parent 3eb0b768a6
commit bab5b67c52

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