Release notes
Django 4.1 release notes
Features deprecated in 4.1
Move the generated operations into the state_operations argument of SeparateDatabaseAndState. For example: The undocumented ability to pass errors=None to SimpleTestCase.assertFormError() and assertFormsetError() is deprecated. Use errors=[] instead. django.contrib.sessions.serializers.PickleSerializer is deprecated due to the risk of remote code execution.
Release notes
Django 5.0 release notes
Features deprecated in 5.0
The instance argument of the undocumented BaseModelFormSet.save_existing() method is renamed to obj. The undocumented django.contrib.admin.helpers.checkbox is removed. Integer fields are now validated as 64-bit integers on SQLite to match the behavior of sqlite3.
Release notes
Django 5.0 release notes
The undocumented BaseForm._html_output() method is removed. The ability to return a str, rather than a SafeString, when rendering an ErrorDict and ErrorList is removed.