Today, "Updates to Django" is presented by Raffaella from Djangonaut Space! 🚀
Last week we had 26 pull requests, into Django by 13 different contributors - including a first-time contributor! Congratulations to Gary Badwal for having their first commits merged into Django - welcome on board!
A huge congratulations on the work done at DjangoCon Europe 2026's sprint, because 4 of those PRs were merged during the sprints 🏰
News in Django:
- The undocumented function
django.template.library.parse_bits()no longer accepts thetakes_contextargument, while theInclusionAdminNode.__init__()now takes the template tagnameas the first positional argument. - Fixed a misplaced
</div>in thedjango/contrib/admin/templates/admin/change_list.htmltemplate added in Django 6.0 that could be problematic when overriding thepaginationblock (#37029). - The new
BitAnd,BitOr, andBitXoraggregates return the bitwiseAND,OR,XOR, respectively. These aggregates were previously included only incontrib.postgres. - The
Fileclass now always evaluates toTruein boolean contexts, rather than relying on thenameattribute. The built-in subclassesFieldFile,UploadedFile,TemporaryUploadedFile,InMemoryUploadedFile, andSimpleUploadedFileretain the previous behavior of evaluating based on thenameattribute.