mirror of https://github.com/jumpserver/jumpserver
fix: Translate Account already exists
parent
85129da942
commit
9cb9e7328b
|
@ -178,7 +178,7 @@ class AccountCreateUpdateSerializerMixin(serializers.Serializer):
|
|||
instance.save()
|
||||
return instance, 'updated'
|
||||
else:
|
||||
raise serializers.ValidationError('Account already exists')
|
||||
raise serializers.ValidationError(_('Account already exists'))
|
||||
|
||||
def create(self, validated_data):
|
||||
push_now = validated_data.pop('push_now', None)
|
||||
|
|
Loading…
Reference in New Issue