| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 4.2.1 source code.tar.gz | 2026-09-29 | 26.2 MB | |
| 4.2.1 source code.zip | 2026-09-29 | 27.0 MB | |
| README.md | 2026-09-29 | 2.5 kB | |
| Totals: 3 Items | 53.2 MB | 1 | |
django-oscar 4.2.1
A bug-fix release with fixes across offers, the dashboard, search, translations and emails.
Upgrade notes
- Norwegian locale renamed to
nb: the locale directory moved fromnotonb(#4632). If yourLANGUAGESsetting or URLs useno, switch them tonb. - Custom benefits now require a range: a custom
Benefitwith no range now raisesImproperlyConfiguredinstead of failing later (#4620). Check any custom benefit classes before upgrading. - Email subjects are no longer HTML-escaped (#4631). Characters like
&and'now appear as-is in subjects. If you worked around the old escaping in custom subject templates, remove the workaround.
Bug fixes
Offers and vouchers
- Fix switching an offer benefit or condition back from a pre-defined one (#4617, @ChrisJr404)
- Fix voucher set usage sorting (#4616, @tunglambk)
Dashboard
- Bulk actions no longer discard a returned
HttpResponse(#4614, @johnwaghorn) - The order CSV download button is no longer disabled after being clicked (#4626, @johnwaghorn)
- Date fields are hidden when the report doesn't support date inputs (#4630, @mr-sphere)
- Add
get_querysetto the notificationUpdateView(#4623, @samar-hassan)
Catalogue, basket and search
- Fix
MultipleObjectsReturnedwhen reordering a product with multiple option variants (#4624, @wakqasahmed) - Fix an error when a product has an empty option group (#4629, @mr-sphere)
- Search views no longer crash on an invalid form (#4625, @tunglambk)
- Fix a redirect loop for Unicode slugs (#4619, @keyanskv; fixes [#4599])
Translations
- Fix zh-Hans and zh-Hant translations never loading (#4621, @juneja-varun)
- Rename the Norwegian locale directory to
nb(#4632, @Aman8883)
Emails
- Stop HTML-escaping email subject templates (#4631, @wakqasahmed)
Other changes
- Update the CDN version of jQuery to 3.7.1 (#4544, @janheini)
- Raise
ImproperlyConfiguredwhen a customBenefithas no range (#4620, @wakqasahmed) - Docs: remove the broken
enforcing_stock_ruleshow-to page (#4615, @juneja-varun)
New contributors
This release had seven first-time contributors. Welcome, and thank you:
- @johnwaghorn (#4614)
- @juneja-varun (#4615)
- @wakqasahmed (#4620)
- @ChrisJr404 (#4617)
- @tunglambk (#4616)
- @keyanskv (#4619)
- @Aman8883 (#4632)
Full changelog: https://github.com/django-oscar/django-oscar/compare/4.2.0...4.2.1