summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-11Refs #32502 -- Avoided table rebuild when removing fields on SQLite 3.35.5+.Mariusz Felisiak
ALTER TABLE ... DROP COLUMN was introduced in SQLite 3.35+ however a data corruption issue was fixed in SQLite 3.35.5.
2022-02-11Refs #33476 -- Made management commands use black.Carlton Gibson
Run black on generated files, if it is available on PATH.
2022-02-10Fixed #26287 -- Added support for addition operations to SimpleLazyObject.Theo Alexiou
2022-02-10Fixed #29490 -- Added support for object-based Media CSS and JS paths.Claude Paroz
2022-02-10Refs #32568 -- Optimized escape() by using SafeString instead of mark_safe().David
2022-02-09Fixed #33501 -- Made order_with_respect_to respect database routers.Damian Posener
2022-02-09Fixed #33495 -- Improved debug logging message about adapting handlers for ↵Aaron Chong
middlewares. It's the wrapped handler that's adapted to the wrapping middleware.
2022-02-09Fixed #33506 -- Made QuerySet.bulk_update() perform atomic writes against ↵Simon Charette
write database. The lack of _for_write = True assignment in bulk_update prior to accessing self.db resulted in the db_for_read database being used to wrap batched UPDATEs in a transaction. Also tweaked the batch queryset creation to also ensure they are executed against the same database as the opened transaction under all circumstances. Refs #23646, #33501.
2022-02-08Fixed #32518 -- Doc'd that QuerySet.contains() should not be overused.John Hollingsworth
Thanks Tim McCurrach for the idea.
2022-02-08Fixed typo in django/contrib/humanize/templatetags/humanize.py comment.dr-rompecabezas
2022-02-08Refs #33476 -- Ignored formatting changes in git blame.Mariusz Felisiak
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-07Refs #33476 -- Changed quotation marks in ↵Mariusz Felisiak
DebugViewTests.test_template_exceptions(). This prevents a failure after reformatting the code with Black.
2022-02-07Refs #33476 -- Added GitHub action to run black linter.Carlton Gibson
2022-02-07Refs #33476 -- Adjusted docs and config files for Black.Carlton Gibson
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-02-07Refs #33482 -- Fixed QuerySet selecting and filtering againts negated ↵Mariusz Felisiak
Exists() with empty queryset. Regression in b7d1da5a62fe4141beff2bfea565f7ef0038c94c.
2022-02-05Refs #32243 -- Fixed typo in docs/topics/files.txt.Grace Hawkins
2022-02-04Reverted "Disabled caching in GitHub actions for Windows tests."Mariusz Felisiak
This reverts commit 11661d3815f273a6968cf09ecc678cf6fa6dcfcd. Fixed in setup-python 2.3.2.
2022-02-03Disabled caching in GitHub actions for Windows tests.Mariusz Felisiak
See https://github.com/actions/setup-python/issues/328.
2022-02-03Refs #32559 -- Added selenium test for FloatField client-side validation.Carlton Gibson
step="any" is required for non-integer values. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#step Covers behaviour added in 7ec2a21be15af5b2c7513482c3bcfdd1e12782ed.
2022-02-03Fixed #33473 -- Fixed detecting changes by autoreloader in .py files inside ↵Hrushikesh Vaidya
template directories.
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
2022-02-03Fixed #32243 -- Added docs examples for manually saving Files.Joshua Massover
2022-02-03Improved example of using a custom queryset in Model formsets docs.Mike Lissner
2022-02-02Added Redis to warning about using cached sessions in docs.Theofilos Alexiou
2022-02-02Fixed #33474 -- Added __slots__ to Variable and FilterExpression.Keryn Knight
2022-02-02Fixed #33482 -- Fixed QuerySet filtering againts negated Exists() with empty ↵Simon Charette
queryset. Thanks Tobias Bengfort for the report.
2022-02-02Fixed typo in release notes.David Smith
2022-02-01Refs #33476 -- Used vertical hanging indentation for format lists with ↵Mariusz Felisiak
inline comments. Lists with multiple values and comments per-line are reformatted by Black to multiple lines with a single comment. For example: DATE_INPUT_FORMATS = "%Y-%m-%d", "%m/%d/%Y", "%m/%d/%y", # '2006-10-25', '10/25/2006', '10/25/06' ] is reformatted to the: DATE_INPUT_FORMATS = "%Y-%m-%d", "%m/%d/%Y", "%m/%d/%y", # '2006-10-25', '10/25/2006', '10/25/06' ] This reformats affected entries to multiple lines with corresponding comments.
2022-02-01Fixed #30360 -- Added support for secret key rotation.tschilling
Thanks Florian Apolloner for the implementation idea. Co-authored-by: Andreas Pelme <andreas@pelme.se> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Vuyisile Ndlovu <terrameijar@gmail.com>
2022-02-01Added stub release notes for 4.0.3.Mariusz Felisiak
2022-02-01Added CVE-2022-22818 and CVE-2022-23833 to security archive.Mariusz Felisiak
2022-02-01Fixed CVE-2022-23833 -- Fixed DoS possiblity in file uploads.Mariusz Felisiak
Thanks Alan Ryan for the report and initial patch.
2022-02-01Fixed CVE-2022-22818 -- Fixed possible XSS via {% debug %} template tag.Markus Holtermann
Thanks Keryn Knight for the report. Co-authored-by: Adam Johnson <me@adamj.eu>
2022-02-01Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model.Kirill Safronov
Regression in aa4acc164d1247c0de515c959f7b09648b57dc42.
2022-01-31Fixed #33468 -- Fixed QuerySet.aggregate() after annotate() crash on ↵Mariusz Felisiak
aggregates with default. Thanks Adam Johnson for the report.
2022-01-29Updated translations from Transifex.Claude Paroz
Updated Bulgarian, Czech, German, Uzbek, and Vietnamese translations. Forwardport of 7a1c6533eb72c3e6faa308796ba7f8d7d447d3b9 from stable/4.0.x.
2022-01-29Fixed #33465 -- Added empty __slots__ to SafeString and SafeData.Keryn Knight
Despite inheriting from the str type, every SafeString instance gains an empty __dict__ due to the normal, expected behaviour of type subclassing in Python. Adding __slots__ to SafeData is necessary, because otherwise inheriting from that (as SafeString does) will give it a __dict__ and negate the benefit added by modifying SafeString.
2022-01-29Fixed #33452 -- Fixed admin change-form layout for submit buttons on ↵Mariusz Felisiak
mid-sized displays. Thanks David Smith for reviews.
2022-01-28Fixed #33461 -- Escaped template errors in the technical 500 debug page.Keryn Knight
2022-01-28Fixed #33459 -- Clarified index type in full text search docs.Thomas Aglassinger
2022-01-27Fixed #26142 -- Allowed model formsets to prevent new object creation.vgolubev
Thanks Jacob Walls, David Smith, and Mariusz Felisiak for reviews. Co-authored-by: parth <parthvin@gmail.com>
2022-01-27Fixed #33463 -- Fixed QuerySet.bulk_update() with F() expressions.Jörg Breitbart
2022-01-27Fixed #33462 -- Fixed migration crash when altering type of primary key with ↵Mariusz Felisiak
MTI and foreign key. This prevents duplicated operations when altering type of primary key with MTI and foreign key. Previously, a foreign key to the base model was added twice, once directly and once by the inheritance model. Thanks bcail for the report. Regression in 325d7710ce9f6155bb55610ad6b4580d31263557.
2022-01-26Fixed wrapping of long messages in the admin.Mariusz Felisiak
2022-01-26Adjusted CBV resolver_match example in testing tools docs.Carlton Gibson
The view_class is available on the view callback, allowing that to be checked, rather than the __name__.
2022-01-26Increased test coverage for django.contrib.gis.gdal.layer.Layer.Mariusz Felisiak
2022-01-26Used GitHub actions for Windows tests.Tom Forbes
2022-01-26Fixed #33048 -- Doc'd that DEBUG static files requests don't use middleware ↵Kaushik Chintam
chain.