Django 3.0.3 版本发行说明
漏洞修复
- Fixed a regression in Django 3.0 where
QuerySet.values()
andvalues_list()
crashed if a queryset contained an aggregation andExists()
annotation (). - Relaxed the system check added in Django 3.0 to reallow use of a sublanguage in the LANGUAGE_CODE setting, when a base language is available in Django but the sublanguage is not ().
- Fixed a system check to ensure the
max_length
attribute fits the longest choice, when a named group contains only non-string values (#31155). - Fixed a regression in Django 2.2 that caused a crash of and StringAgg with
filter
argument when used in aSubquery
(). - Fixed a regression in Django 3.0 that caused a crash of
QuerySet.prefetch_related()
forGenericForeignKey
with a custom foreign key (#31190).