mirror of https://github.com/jumpserver/jumpserver
fix: 修复自定义 applet 导入的 bug
parent
3eb0b768a6
commit
bab5b67c52
|
@ -191,7 +191,6 @@ class PlatformSerializer(ResourceLabelsMixin, WritableNestedModelSerializer):
|
||||||
def add_type_choices(self, name, label):
|
def add_type_choices(self, name, label):
|
||||||
tp = self.fields['type']
|
tp = self.fields['type']
|
||||||
tp.choices[name] = label
|
tp.choices[name] = label
|
||||||
tp.choice_mapper[name] = label
|
|
||||||
tp.choice_strings_to_values[name] = label
|
tp.choice_strings_to_values[name] = label
|
||||||
|
|
||||||
@lazyproperty
|
@lazyproperty
|
||||||
|
|
Loading…
Reference in New Issue