2020 年 2 月 3 日
Django 3.0.3 修复了 3.0.2 版本中的一个安全问题和多个错误。
Subquery()
注释中减去 DateField
、DateTimeField
或 TimeField
时崩溃 (#31133)。Exists()
注释,那么 QuerySet.values()
和 values_list()
会崩溃 (#31136)。LANGUAGE_CODE
设置中使用子语言,当 Django 中有基本语言可用但子语言不可用时 (#31141)。TextChoices
、IntegerChoices
和 Choices
的支持 (#31154)。max_length
属性适合最长的选择 (#31155)。Subquery
中使用带有 filter
参数的 ArrayAgg
和 StringAgg
时导致崩溃 (#31097)。get_FOO_display()
不正确工作 (#31124)。ContentType
外键的 GenericForeignKey
上使用 QuerySet.prefetch_related()
时崩溃 (#31190)。12月 04, 2023