Django 2.2.7 版本发行说明
2019 年 11 月 4 日
Django 2.2.7 fixes several bugs in 2.2.6.
漏洞修复
- Fixed a crash when using a
contains,contained_by,has_key,has_keys, orhas_any_keyslookup ondjango.contrib.postgres.fields.JSONField, if the right or left hand side of an expression is a key transform (#30826). - Prevented
migrate --planfrom showing thatRunPythonoperations are irreversible whenreverse_codecallables don't have docstrings or when showing a forward migration plan (#30870). - Fixed migrations crash on PostgreSQL when adding an
Indexwith fields ordering andopclasses(#30903). - Restored the ability to override
get_FOO_display()(#30931).
讨论区