RepoJournal
Django

@django

Python's batteries-included web framework

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

DJANGO PINS SELENIUM TO DODGE ATTRIBUTE PARSING BREAK

By RepoJournal · Filed · About Django

Selenium 4.44.0 flipped the return value for missing class attributes from empty string to None, and Django's test suite just caught it mid-flight.

The Django test infrastructure pinned selenium to versions below 4.44.0 after discovering a breaking change in how get_attribute('class') behaves [1]. When an element has no class attribute, selenium 4.44.0+ now returns None instead of an empty string, a shift that breaks Django's existing test assertions. The issue has been reported upstream to the Selenium project [2], but the pin ensures your test suite doesn't crack on upgrade.

On the feature front, RedirectView now supports the preserve_request argument [3], bringing parity with Django's redirect() shortcut. When enabled, it returns 307 (temporary) or 308 (permanent) status codes instead of 302/301, properly preserving the original request method. Default behavior stays unchanged, so existing code runs untouched [4].

The djangoproject.com site added test coverage for the theme toggle button [5], hardening the documentation interface against future regressions. These incremental test additions compound over time into a safer deployment surface.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Pinned selenium version to "<4.44.0" due to change in get_attribute("class") behavior. ↗ django/django
  2. [2] Pinned selenium version to "<4.44.0" due to change in get_attribute("class") behavior. django/django
  3. [3] Fixed #37062 -- Added preserve_request support to RedirectView. ↗ django/django
  4. [4] Fixed #37062 -- Added preserve_request support to RedirectView. django/django
  5. [5] Added tests for theme toggle button. ↗ django/djangoproject.com

Quick answers

What shipped in Django on May 16, 2026?
Selenium 4.44.0 flipped the return value for missing class attributes from empty string to None, and Django's test suite just caught it mid-flight. In total, 4 commits and 3 pull requests landed.
Who contributed to Django on May 16, 2026?
2 developers shipped this update, including sarahboyce and VAIBHAVPANT07.
What were the notable Django updates?
Pinned selenium version to "<4.44.0" due to change in get_attribute("class") behavior, Pinned selenium version to "<4.44.0" due to change in get_attribute("class") behavior, and Fixed #37062 -- Added preserve_request support to RedirectView.

More from @django

Daily updates, in your inbox

Follow Django

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?