summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-24Fixed ResourceWarning in ↵Mariusz Felisiak
test_client.tests.ClientTest.test_uploading_named_temp_file().
2021-06-24Fixed #32727 -- Allowed spaces before time zone offset in parse_datetime().Ben Wilber
2021-06-23Fixed #32817 -- Added the token source to CsrfViewMiddleware's bad token ↵Chris Jerdonek
error messages.
2021-06-23Refs #32817 -- Added tests for bad CSRF token provided via X-CSRFToken or ↵Chris Jerdonek
custom header.
2021-06-23Refs #32817 -- Added post_token/meta_token/token_header arguments to ↵Chris Jerdonek
_get_POST_csrf_cookie_request().
2021-06-23Refs #32817 -- Combined the bad-or-missing CSRF token tests.Chris Jerdonek
2021-06-23Fixed #32363 -- Ensured sys.__interactivehook__ is called in shellPeter Inglesby
By default, this means that readline is properly registered, so that .python_history is used. sys.__interactivehook__ may be set by a $PYTHONSTARTUP file.
2021-06-23Fixed #32790 -- Ensured test Client handles redirects to domain indexes ↵tomhamiltonstubber
without a specified trailing slash.
2021-06-23Removed options parameter from djangoAdminSelect2.Adam Johnson
It seems this parameter has never been used internally, so to avoid exposing a large surface area in the admin, remove it. As discussed in: https://groups.google.com/g/django-developers/c/G-fDkNxhxsE/m/--RtGwmtAQAJ
2021-06-22Refs #24121 -- Added __repr__() to StreamingHttpResponse and subclasses.Nicolas Restrepo
2021-06-22Fixed #32863 -- Skipped system check for specifying type of auto-created ↵Hasan Ramezani
primary keys on models with invalid app_label. Regression in b5e12d490af3debca8c55ab3c1698189fdedbbdb. Thanks Iuri de Silvio for the report.
2021-06-22Fixed dash-separated deprecation warning in setup.cfg.Tim Graham
Deprecated in setuptools 54.1.0.
2021-06-22Refs #32338 -- Removed 'for ="..."' from RadioSelect's <label>.David Smith
This improves accessibility for screen reader users. Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-06-22Added a note about %autoawait off for IPython.Russell Keith-Magee
2021-06-22Refs #29898 -- Moved django.db.migrations.operations.utils to ↵manav014
django.db.migrations.utils.
2021-06-22Fixed #32870 -- Improved error message when URLconf is empty.Igor Fernandes
2021-06-22Fixed #32842 -- Refactored out CsrfViewMiddleware._check_token().Chris Jerdonek
2021-06-22Refs #32858, Refs #32392 -- Restored using :: shortcut syntax in Cast() on ↵Mariusz Felisiak
PostgreSQL. This partly reverts commit fdfbc66331292def201c9344e3cd29fbcbcd076a unnecessary since b69b0c3fe871167a0ca01bb439508e335143801f.
2021-06-22Fixed #32858 -- Fixed ExclusionConstraint crash with index transforms in ↵Lucidiot
expressions.
2021-06-21Fixed typo in makemessages error message.Jacob Walls
2021-06-21Fixed #32860 -- Made docs permalinks focusable to improve accessibility.Timothy McCurrach
2021-06-21Fixed #32859 -- Simplified compress_string() by using gzip.compress().Illia Volochii
2021-06-15Fixed #30427, Fixed #16176 -- Corrected setting descriptor in ↵Carlton Gibson
Field.contribute_to_class(). Co-authored-by: Jarek Glowacki <jarekwg@gmail.com>
2021-06-15Refs #30427, Refs #16176 -- Added test for abstract model inheritance.Carlton Gibson
2021-06-12Fixed comment in CsrfViewMiddleware to say _reject instead of reject.Chris Jerdonek
2021-06-11Fixed #32824 -- Improved performance of NodeList.render().Keryn Knight
This avoids the following: - checking that each item in the nodelist is a subclass of Node, - calling str() on the render_annotated() output, because it's documented that Node.render() must return a string, - calling mark_safe() on the output, when the value to be wrapped is definitively known to be a string because the result of ''.join() is always of that type, - using an intermediate list to store each individual string.
2021-06-11Fixed #25250 -- Clarified partially recorded state of squashed migrations in ↵Jacob Walls
showmigrations --list.
2021-06-10Fixed #32609 -- Updated runtests.py to support directory path test labels.Chris Jerdonek
For example, with this change, the following now works from the tests directory: $ ./runtests.py view_tests/tests/
2021-06-10Fixed #32832 -- Fixed adding BLOB/TEXT nullable field with default on MySQL ↵Mariusz Felisiak
8.0.13+. Regression in d4ac23bee1c84d8e4610350202ac068fc90f38c0. Thanks Omkar Deshpande for the report.
2021-06-10Refs #32503 -- Added release notes for 5e04e84d67da8163f365e9f5fcd169e2630e2873.Mariusz Felisiak
2021-06-10Fixed typo in tests/test_runner/test_discover_runner.py.Mariusz Felisiak
2021-06-10Refs #24121 -- Added __repr__() to AdminForm, BlockContext, ↵saeedblanchette
BlockTranslateNode, and IncludeNode.
2021-06-10Refs #27734 -- Prevented creation of more parallel workers than TestCases.Ceesjan Luiten
The parallel test runner uses multiple workers to distribute the workload. These workers are assigned a worker ID using a globally incremented variable, which determines what test database to connect to. When the worker ID surpasses the test database IDs Django will crash. This reduce likelihood of crashing parallel tests because ParallelTestSuite will no longer create more workers than TestCases. It won't eliminate the problem completely though because there are other circumstances in which new workers can be created which can then be assigned an "illegal" worker ID.
2021-06-09Fixed #32829 -- Updated help text for clearsessions management command.Hasan Ramezani
Obsolete since 5fec97b9df6ea075483276de159e522a29437773.
2021-06-09Fixed #32195 -- Added system check for invalid view in path() and improved ↵Angus Holder
error messages.
2021-06-09Refs #32195 -- Added path() test for invalid view.Mariusz Felisiak
2021-06-08Refs #14357 -- Updated docs about interaction between aggregations and ↵Mariusz Felisiak
QuerySet.order_by(). Obsolete since 0ddb4ebf7bfcc4730c80a772dd146a49ef6895f6.
2021-06-08Refs #32355 -- Used addClassCleanup() in SimpleTestCase and SerializeMixin.Mariusz Felisiak
2021-06-08Fixed #25255 -- Recorded unapplied squashed migrations.Jacob Walls
2021-06-08Fixed #31653 -- Added AddConstraintNotValid()/ValidateConstraint() ↵Sanskar Jaiswal
operations for PostgreSQL.
2021-06-07Fixed #32814 -- Improved performance of TextNode.Keryn Knight
This avoids calling render() and handling exceptions, which is not necessary for text nodes.
2021-06-07Fixed typos in test comments.luzpaz
2021-06-07Refs #32668 -- Renamed setup()/teardown() to ↵Chris Jerdonek
setup_run_tests()/teardown_run_tests() in runtests.py.
2021-06-07Refs #32668 -- Changed bisect_tests() and paired_tests() to use only ↵Chris Jerdonek
setup_collect_tests().
2021-06-07Refs #32668 -- Passed setup()'s return value to run_tests() instead of ↵Chris Jerdonek
get_installed().
2021-06-07Refs #32668 -- Refactored out setup_collect_tests() in runtests.py.Chris Jerdonek
2021-06-07Refs #32668 -- Added gis_enabled argument to get_test_modules().Chris Jerdonek
2021-06-07Fixed #32716 -- Fixed ManifestStaticFilesStorage crash when ↵aryabartar
max_post_process_passes is 0.
2021-06-07Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek
2021-06-07Refs #24121 -- Added __repr__() to ChangeList and BaseStorage.saeedblanchette