mirror of https://github.com/jumpserver/jumpserver
perf: 优化账号列表-添加账号切换自用户字段必填的问题
parent
9058a79c5c
commit
04e95d378c
|
@ -241,7 +241,8 @@ class AssetAccountBulkSerializer(
|
|||
AccountCreateUpdateSerializerMixin, AuthValidateMixin, serializers.ModelSerializer
|
||||
):
|
||||
su_from_username = serializers.CharField(
|
||||
max_length=128, required=False, write_only=True, allow_null=True, label=_("Su from")
|
||||
max_length=128, required=False, write_only=True, allow_null=True, label=_("Su from"),
|
||||
allow_blank=True,
|
||||
)
|
||||
assets = serializers.PrimaryKeyRelatedField(queryset=Asset.objects, many=True, label=_('Assets'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue