Django 6.1.3

6.1.3
Added 1
  • Added compatibility for oracledb 26.0.0+
Fixed 6
  • Accessing a deferred field with the FETCH_PEERS fetch mode no longer overwrites values that peer instances had already modified locally or loaded via refresh_from_db() with an explicit fields argument
  • Accessing a deferred field with the FETCH_PEERS fetch mode no longer raises a KeyError when a peer's row had been deleted
  • The YAML serializer no longer crashes when passed the sort_keys option
  • A Value expression with a None value and an output field other than JSONField no longer crashes on SQLite when used in a top-level JSONField in lookup
  • legend_tag() with a custom attrs no longer adds the required_css_class more than once
  • makemessages no longer crashes on Windows when processing files with non-ASCII names on Python 3.15+, or with UTF-8 mode enabled on older Python versions

From Django

Django 6.1.3 release notes

November 3, 2026 Django 6.1.3 fixes five security issues with severity “low”, one security issue with severity “moderate”, and several bugs in 6.1.2. It also adds compatibility with Python 3.15.

Bugfixes
  • Fixed a bug in Django 6.1 where accessing a deferred field with the FETCH_PEERS fetch mode overwrote values that peer instances had already modified locally or loaded via refresh_from_db() with an explicit fields argument. The fix also addresses a KeyError when a peer’s row had been deleted (#37436).
  • Fixed a regression in Django 6.1 where the YAML serializer crashed if passed the sort_keys option (#37405).
  • Fixed a regression in Django 6.1 where a Value expression with a None value and an output field other than JSONField crashed on SQLite when used in a top-level JSONField in lookup (#37403). Using such an expression in an IN lookup is likely unintended, since SQL NULL cannot match any value.
  • Fixed a regression in Django 6.1 where legend_tag() with a custom attrs could add the required_css_class more than once (#37463).
  • Added compatibility for oracledb 26.0.0+ (#37411).
  • Fixed a crash in makemessages on Windows when processing files with non-ASCII names on Python 3.15+, or with UTF-8 mode enabled on older Python versions (#37447).
View original

Upgraded? How did it go?

Discussion