summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-12Refs #32074 -- Used Enum.repr() format proposed for Python 3.10.Mariusz Felisiak
The Python's Steering Council decided to revert changes in the Enum module (see https://bugs.python.org/issue44559) and moved them to Python 3.11. Follow up to 5d9b065d3f93de056588dfee6f1776294dd8bab2. Thanks Nick Pope for the review.
2021-07-12Refs #32880 -- Created a new logging how-to document.Daniele Procida
Moved how-to material from topic document into a new document, and added new material. Introduced minor improvements to logging reference document.
2021-07-12Fixed #32914 -- Prevented test --shuffle from skipping test methods.Chris Jerdonek
"test --shuffle" skipped test methods when test classes were mixed. This changes runner.py's reorder_tests() to group by TestCase class. Regression in 90ba716bf060ee7fef79dc230b0b20644839069f.
2021-07-09Fixed typo in docs/ref/contrib/gis/tutorial.txt.Wille Marcel
2021-07-09Fixed #27021 -- Allowed lookup expressions in annotations, aggregations, and ↵Ian Foote
QuerySet.filter(). Thanks Hannes Ljungberg and Simon Charette for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-09Refs #24522 -- Fixed code comment about seeds in Shuffler.__init__().Chris Jerdonek
2021-07-09Fixed isolation of NonAutocommitTests.test_orm_query_after_error_and_rollback().Mariusz Felisiak
2021-07-08Fixed isolation of GenericRelationTests.test_filter_targets_related_pk().Mariusz Felisiak
2021-07-08Fixed #24522 -- Added a --shuffle option to DiscoverRunner.Chris Jerdonek
2021-07-08Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+.Mariusz Felisiak
2021-07-07Fixed #32840 -- Optimized Field.get_col().Keryn Knight
get_col() used "self" as "output_field" when it was not given, and unnecessarily compared "self" to "self". Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-07Fixed inspectdb and schema tests on MariaDB 10.6+.Mariusz Felisiak
The utf8 character set (and related collations) is by default an alias for utf8mb3 on MariaDB 10.6+.
2021-07-07Fixed #32904 -- Made parse_time() more strict.abhiabhi94
Thanks Keryn Knight for the report.
2021-07-07Fixed #32866 -- Fixed trimming trailing punctuation from escaped string in ↵Shipeng Feng
urlize().
2021-07-07Used more specific unittest assertions in tests.Mads Jensen
2021-07-07Documented in_bulk behavior with nonexistent id_list items.Claude Paroz
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2021-07-06Added test for errors when saving timezone-aware times if not supported.abhiabhi94
2021-07-06Fixed #32892 -- Optimized django.utils.dateparse functions by using ↵Keryn Knight
fromisoformat().
2021-07-06Added more tests for parse_time().Keryn Knight
2021-07-06Bumped versions in pre-commit configuration.Adam Johnson
2021-07-06Fixed #32776 -- Added support for Array subqueries on PostgreSQL.Hannes Ljungberg
2021-07-05Fixed isolation of RouterTestCase.test_m2m_cross_database_protection().Mariusz Felisiak
Hardcoded pks are necessary for this test case, however we need to set them for all new rows because the sequence will not increment automatically. It works when the sequence is incremented by other test cases.
2021-07-05Fixed #32901 -- Optimized BaseForm.__getitem__().Chris Jerdonek
2021-07-05Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert".Mateo Radman
2021-07-05Fixed isolation of test_filename_traversal_upload().Mariusz Felisiak
shutil.rmtree(MEDIA_ROOT) is already called as a class cleanup.
2021-07-05Fixed #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL.Wu Haotian
2021-07-05Refs #28574 -- Added test for XML format output to Queryset.explain().Wu Haotian
2021-07-05Refs #24121 -- Added __repr__() to AdminSite, DefaultAdminSite, and ModelAdmin.Eduardo Aldair Ahumada Garcia Jurado
Thanks tlebrize for the initial patch.
2021-07-02Fixed #30934 -- Included database alias in django.db.backends log messages.Nick Pope
This is useful when working with database routing as you want to know where each query is being executed. Co-authored-by: David Winterbottom <david.winterbottom@gmail.com>
2021-07-02Fixed #28935 -- Fixed display of errors in extended blocks.cammil
Get the template that caused the exception and get the exception info from that template, using the node that caused the exception.
2021-07-02Refs #26430 -- Re-introduced empty aggregation optimization.Simon Charette
The introduction of the Expression.empty_aggregate_value interface allows the compilation stage to enable the EmptyResultSet optimization if all the aggregates expressions implement it. This also removes unnecessary RegrCount/Count.convert_value() methods. Disabling the empty result set aggregation optimization when it wasn't appropriate prevented None returned for a Count aggregation value. Thanks Nick Pope for the review.
2021-07-02Fixed #26430 -- Fixed coalesced aggregation of empty result sets.Simon Charette
Disable the EmptyResultSet optimization when performing aggregation as it might interfere with coalescence.
2021-07-01Fixed #32893 -- Fixed serialization of models.Model class in migrations.abhiabhi94
Migrations assumed that an import of the models.Model class must already be included when it's serialized, but for models with only custom fields this was not necessarily the case. Thanks Jaap Joris Vens for the report.
2021-07-01Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler .Allan Feldman
By using a asgiref's ThreadSensitiveContext context manager, requests will be able to execute independently of other requests when sync work is involved. Prior to this commit, a single global thread was used to execute any sync work independent of the request from which that work was scheduled. This could result in contention for the global sync thread in the case of a slow sync function. Requests are now isolated to their own sync thread.
2021-07-01Refs #32144 -- Made makemessages remove temporary files on preprocessing error.Carlton Gibson
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
2021-07-01Fixed #32144 -- Made makemessages remove temporary files when locale path ↵Carlton Gibson
doesn't exist.
2021-07-01Added CVE-2021-35042 to security archive.Mariusz Felisiak
2021-07-01Added stub release notes for Django 3.2.6.Mariusz Felisiak
2021-07-01Forwardported release notes for CVE-2021-35042.Mariusz Felisiak
2021-07-01Refs #32880 -- Renamed/reordered logging topic sections.Daniele Procida
Moved sections so that how-to type material is all together, and renamed headings so it's clearer what those sections are about, in anticipation of creating a separate how-to document and expanding the material.
2021-07-01Removed trailing whitespace in logging topic.Daniele Procida
2021-07-01Added stub release notes for 3.1.13 and release date for 3.2.5.Mariusz Felisiak
2021-06-30Fixed #32850 -- Doc'd Sitemap.paginator.Thomas Guettler
2021-06-30Fixed #32786 -- Moved subquery ordering clearing optimization to the _in lookup.Hannes Ljungberg
Co-Authored-By: Simon Charette <charette.s@gmail.com>
2021-06-30Refs #32786 -- Made Query.clear_ordering() not to cause side effects by default.Hannes Ljungberg
2021-06-30Refs #32885 -- Used _read_csrf_cookie()/_set_csrf_cookie() in more CSRF tests.Chris Jerdonek
2021-06-30Fixed #32885 -- Removed cookie-based token specific logic from ↵Chris Jerdonek
CsrfViewMiddlewareTestMixin.
2021-06-30Refs #32880 -- Moved logging reference to new document.Daniele Procida
Completed a first step in moving reference and how-to material out of the topic document.
2021-06-29Refs #32655 -- Improved error if iter_test_cases() is passed a string.Chris Jerdonek
2021-06-29Refs #26430 -- Added tests for PostgreSQL-specific aggregates on ↵Mariusz Felisiak
EmptyQuerySets and used subTest().