Merge pull request #14145 from jumpserver/pr@dev@account_already_exists

fix: Translate Account already exists
pull/14141/head
ZhaoJiSen 2024-09-13 18:33:25 +08:00 committed by GitHub
commit c8b1d892e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)