fix: Translate Account already exists

This commit is contained in:
feng 2024-09-13 18:32:06 +08:00
parent 85129da942
commit 9cb9e7328b

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)