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

pull/12526/head
ibuler 2024-01-11 18:38:30 +08:00 committed by Bryan
parent 3eb0b768a6
commit bab5b67c52
1 changed files with 0 additions and 1 deletions

View File

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