2023 年 6 月 5 日
Django 4.2.2 修复了 4.2.1 版本中的一些错误。
TextField()
/BinaryField()
上使用 __isnull
和 __exact=None
查找时出现不必要的 DBMS_LOB.SUBSTR()
包装 (#34544)。JSONField
子类中的 get_prep_value()
调用 (#34539)。ManyToManyField
或 GenericForeignKey
引用时,QuerySet.defer()
发生崩溃。虽然这是一个无操作,但在较旧的版本中允许这样做 (#34570)。OneToOneField
引用时,QuerySet.only()
发生崩溃 (#34612)。makemigrations --update
不会考虑 --name
选项 (#34568)。QuerySet.aggregate()
时发生崩溃 (#34551)。QuerySet.aggregate()
时发生崩溃 (#34551)。DecimalField
进行过滤时,当值超出定义范围时,查询集发生崩溃 (#34590)。Manager
的基本 QuerySet
使用了 select_related()
时,ManyToManyField
的序列化会崩溃 (#34620)。12月 04, 2023