如何使用 peewee 将字符串或整数填充到每一行中?

How to make string or int to be filled in every row using peewee?

我有这样的查询:

select id, 'Test' as test, 1 as number_test from table_x limit 10

结果:

id test number_test
1 Test 1
2 Test 1

如何在 peewee 中使用 .alias()

编写 (select)
query = List.select(List.id, List.title, 'Test'.c.alias('test'),'1'.c.alias('ordering'))

这不起作用。

使用Value:

query = List.select(
  List.id, List.title,
  Value('Test').alias('test'),
  Value(1).alias('ordering'))