summaryrefslogtreecommitdiff
path: root/django/core
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34568 -- Made makemigrations --update respect --name option.Mariusz Felisiak2023-05-171-3/+2
| | | Thanks David Sanders for the report.
* Fixed #34535 -- Fixed SQLite dbshell crash on pathlib.Path when handling ↵Jan Pieter Waagmeester2023-05-041-1/+1
| | | | | | CommandError. Regression in 5b884d45ac5b76234eca614d90c83b347294c332.
* Fixed typo in ManagementUtility.autocomplete()'s docstring.Vitor [Bux]baum2023-04-131-2/+2
|
* Fixed #34484, Refs #34482 -- Reverted "Fixed #29186 -- Fixed pickling ↵Mariusz Felisiak2023-04-121-10/+0
| | | | | | | | HttpRequest and subclasses." This reverts commit 6220c445c40a6a7f4d442de8bde2628346153963. Thanks Adam Johnson and Márton Salomváry for reports.
* Fixed #27505 -- Allowed customizing Paginator's error messages.Marcelo Galigniana2023-04-121-5/+22
|
* Fixed #34394 -- Added FORCE_SCRIPT_NAME handling to ASGIRequest.sarahboyce2023-04-121-10/+11
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #33738 -- Allowed handling ASGI http.disconnect in long-lived requests.th3nn3ss2023-04-031-3/+38
|
* Fixed some typos in comments, docstrings, and tests.Liyang Zhang2023-03-201-1/+1
|
* Improved connection clean-up for SMTP backend.Carlton Gibson2023-03-141-6/+8
|
* Fixed #32172 -- Adapted signals to allow async handlers.Jon Janzen2023-03-071-3/+1
| | | | | co-authored-by: kozzztik <kozzztik@mail.ru> co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #34386 -- Made SMTP backend load default system root CA certificates ↵Dmitriy Sintsov2023-03-061-2/+4
| | | | | | by default. Regression in 2848e5d0ce5cf3c31fe87525536093b21d570f69.
* Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files.Markus Holtermann2023-02-142-1/+11
| | | | Thanks to Jakob Ackermann for the report.
* Fixed #32813 -- Made runserver display port after binding.Dhanush2023-02-102-26/+32
| | | | Thanks Florian Apolloner for the review.
* Fixed #34259 -- Passed called_from_command_line to command subparsers.Adam Johnson2023-02-031-0/+10
|
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-015-6/+2
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Fixed #28054 -- Made runserver not return response body for HEAD requests.Sarah Boyce2023-01-271-1/+26
| | | Co-authored-by: jannschu <jannik.schuerg@posteo.de>
* Fixed #34294 -- Protected django.core.files.locks against argtypes ↵Simon Sawicki2023-01-261-3/+4
| | | | redefinition on Windows.
* Refs #34233 -- Used @functools.cache.Nick Pope2023-01-183-3/+3
| | | | Python 3.9+ supports @functools.cache as an alias for @functools.lru_cache(maxsize=None).
* Refs #34233 -- Used str.removeprefix()/removesuffix().Mariusz Felisiak2023-01-187-10/+9
|
* Refs #34233 -- Used aiter() and anext().Nick Pope2023-01-181-1/+1
| | | Available since Python 3.10.
* Fixed #34233 -- Dropped support for Python 3.8 and 3.9.Mariusz Felisiak2023-01-184-13/+3
|
* Refs #29708 -- Removed PickleSerializer per deprecation timeline.Mariusz Felisiak2023-01-171-24/+0
|
* Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda2023-01-122-3/+21
|
* Fixed #26029 -- Allowed configuring custom file storage backends.Jarosław Wygoda2023-01-122-0/+51
|
* Fixed #34110 -- Added in-memory file storage.Francesco Panico2023-01-102-0/+292
| | | | | Thanks Paolo Melchiorre, Carlton Gibson, and Mariusz Felisiak for reviews.
* Fixed #33865 -- Optimized LimitedStream wrapper.Nick Pope2023-01-052-46/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of LimitedStream is slow because .read() performs an extra copy into a buffer and .readline() performs two extra copies. The stream being wrapped is already typically a BytesIO object so this is unnecessary. This implementation has largely been untouched for 12 years and, inspired by a simpler implementation in werkzeug, it was possible to achieve the following performance improvement: LimitedStream.read() (single line): Mean +- std dev: [bench_limitedstream-main] 286 ns +- 6 ns -> [bench_limitedstream-patch] 227 ns +- 6 ns: 1.26x faster LimitedStream.readline() (single line): Mean +- std dev: [bench_limitedstream-main] 507 ns +- 11 ns -> [bench_limitedstream-patch] 232 ns +- 8 ns: 2.18x faster LimitedStream.read(8192) (single line): Mean +- std dev: [bench_limitedstream-main] 360 ns +- 8 ns -> [bench_limitedstream-patch] 297 ns +- 6 ns: 1.21x faster LimitedStream.readline(8192) (single line): Mean +- std dev: [bench_limitedstream-main] 602 ns +- 10 ns -> [bench_limitedstream-patch] 305 ns +- 10 ns: 1.98x faster LimitedStream.read() (multiple lines): Mean +- std dev: [bench_limitedstream-main] 290 ns +- 5 ns -> [bench_limitedstream-patch] 236 ns +- 6 ns: 1.23x faster LimitedStream.readline() (multiple lines): Mean +- std dev: [bench_limitedstream-main] 517 ns +- 19 ns -> [bench_limitedstream-patch] 239 ns +- 7 ns: 2.16x faster LimitedStream.read(8192) (multiple lines): Mean +- std dev: [bench_limitedstream-main] 363 ns +- 8 ns -> [bench_limitedstream-patch] 311 ns +- 11 ns: 1.17x faster LimitedStream.readline(8192) (multiple lines): Mean +- std dev: [bench_limitedstream-main] 601 ns +- 12 ns -> [bench_limitedstream-patch] 308 ns +- 7 ns: 1.95x faster Geometric mean: 1.59x faster
* Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres2022-12-281-1/+2
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul2022-12-281-13/+31
| | | | | | | | Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Fixed #33735 -- Added async support to StreamingHttpResponse.Carlton Gibson2022-12-221-13/+17
| | | | | Thanks to Florian Vazelle for initial exploratory work, and to Nick Pope and Mariusz Felisiak for review.
* Refs #34118 -- Adopted asgiref coroutine detection shims.Carlton Gibson2022-12-202-9/+8
| | | Thanks to Mariusz Felisiak for review.
* Fixed #34212 -- Made RedisCacheClient.incr() use write connection.Leo2022-12-161-1/+1
| | | | Co-authored-by: Sin-Woo Bang <sinwoobang@gmail.com>
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-1/+1
| | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #34209 -- Prevented FileBasedCache.has_key() crash caused by a race ↵Marti Raudsepp2022-12-131-2/+3
| | | | condition.
* Fixed #33199 -- Deprecated passing positional arguments to ↵SirAbhi132022-12-091-7/+29
| | | | | | Signer/TimestampSigner. Thanks Jacob Walls for the implementation idea.
* Made inspectdb used Cursor.description.display_size for CharFields' max_length.Mariusz Felisiak2022-12-081-2/+2
| | | internal_size is size for fixed-size types not for char types.
* Refs #34118 -- Used smtplib's context parameter instead of keyfile and certfile.Mariusz Felisiak2022-11-161-9/+10
| | | | keyfile and certfile parameters were removed in Python 3.12, see https://github.com/python/cpython/commit/ef0e72b31d22f780d3a165d7d0471806061fe380
* Refs #34110 -- Added StorageSettingsMixin.Francesco Panico2022-11-112-16/+17
|
* Refs #34110 -- Reorganized django.core.files.storage into a separate module.Francesco Panico2022-11-113-209/+219
|
* Updated documentation and comments for RFC updates.Nick Pope2022-11-102-4/+4
| | | | | | | | | | | | | | | - Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
* Refs #33374 -- Adjusted full match condition handling.Simon Charette2022-11-071-0/+6
| | | | | | Adjusting WhereNode.as_sql() to raise an exception when encoutering a full match just like with empty matches ensures that all case are explicitly handled.
* Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux.Yuri Konotopov2022-10-241-6/+8
| | | | Thanks Florian Apolloner for the review.
* Fixed #34085 -- Made management commands don't use black for non-Python files.Carlton Gibson2022-10-201-3/+1
| | | | | | | Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5. Co-authored-by: programmylife <acmshar@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Removed unused branch in Paginator.validate_number().Marcelo Galigniana2022-10-131-4/+1
| | | | Unused since 96cf3656c48f6c42714a70b4546bc42f7b904185.
* Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush2022-10-041-1/+8
| | | | Thanks David Sanders for the review.
* Refs #32987 -- Relaxed system check for template tag modules with the same ↵Mariusz Felisiak2022-10-031-5/+5
| | | | | | | name by turning into a warning. Thanks Claude Paroz for the report. Regression in 004b4620f6f4ad87261e149898940f2dcd5757ef.
* Fixed #34051 -- Made makemigrations --check exit before making migrations.Jacob Walls2022-09-281-3/+6
|
* Fixed #34052 -- Made migrate --check don't emit signals and output when up ↵JunKi Yoon2022-09-271-10/+14
| | | | to date.
* Improved migrate help text for the --check option.Mike Lissner2022-09-261-1/+4
|
* Fixed #34014 -- Fixed DecimalValidator validating 0 in positive exponent ↵Kamil Turek2022-09-171-2/+4
| | | | | | scientific notation. Thanks Shiplu Mokaddim for the report.
* Fixed #29186 -- Fixed pickling HttpRequest and subclasses.Anvesh Mishra2022-09-141-0/+10
|