mirror of https://github.com/jumpserver/jumpserver
parent
80903d1218
commit
10d776f7e5
|
@ -77,5 +77,6 @@ class BaseAccountSerializer(AuthValidateMixin, BulkOrgResourceModelSerializer):
|
|||
'date_verified', 'created_by', 'date_created',
|
||||
]
|
||||
extra_kwargs = {
|
||||
'name': {'required': True},
|
||||
'spec_info': {'label': _('Spec info')},
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ class AssetAccountSerializer(
|
|||
template = serializers.BooleanField(
|
||||
default=False, label=_("Template"), write_only=True
|
||||
)
|
||||
name = serializers.CharField(max_length=128, required=False, label=_("Name"))
|
||||
name = serializers.CharField(max_length=128, required=True, label=_("Name"))
|
||||
|
||||
class Meta:
|
||||
model = Account
|
||||
|
|
Loading…
Reference in New Issue