django-tables2无法正确对列进行排序

问题描述 投票:0回答:1

在项目中,我使用RequestConfig(request).configure(table)对各列进行排序。它们都定义为ArrayField(models.CharField(max_length=50), null= True)。问题是标题和年份可以排序,但其他三个不能正确排序。我在较小的值中获得较大的值。我想Title和Year是字符串,但是其他是包含整数的列表。有人可以率先对中间的三列进行正确排序吗?[Table Headers

Second column not sorted properly

python django django-tables2
1个回答
0
投票
您可能应该使用CoAuthors定义CitationsNcitationsIntegerField列中的每一个。
© www.soinside.com 2019 - 2024. All rights reserved.