mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 03:42:54 +00:00
parent
5fcd83b587
commit
d78725f7c5
@ -66,7 +66,7 @@ class LabeledChoiceField(ChoiceField):
|
|||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
if isinstance(data, dict):
|
if isinstance(data, dict):
|
||||||
return data.get("value")
|
data = data.get("value")
|
||||||
return super(LabeledChoiceField, self).to_internal_value(data)
|
return super(LabeledChoiceField, self).to_internal_value(data)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user