summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-07Finalized release notes for Django 4.0.Mariusz Felisiak
2021-12-07Updated asgiref dependency for 4.0 release series.Mariusz Felisiak
2021-12-07Removed unused map_options JS variable.Claude Paroz
map_options is not referenced at all in OLMapWidget.js. Unused since 2ebfda38e65177dfc7d6e90457ffa4a0fa2796f0.
2021-12-07Added CVE-2021-44420 to security archive.Mariusz Felisiak
2021-12-07Fixed #30530, CVE-2021-44420 -- Fixed potential bypass of an upstream access ↵Florian Apolloner
control based on URL paths. Thanks Sjoerd Job Postmus and TengMA(@te3t123) for reports.
2021-12-06Updated translations from Transifex.Mariusz Felisiak
This also fixes related i18n tests. Forwardport of 4c5215ab036aa8fda9cd0148fd034f4d8f7d69d1 from stable/4.0.x Co-authored-by: Claude Paroz <claude@2xlibre.net>
2021-12-06Fixed #33335 -- Made model validation ignore functional unique constraints.Hannes Ljungberg
Regression in 3aa545281e0c0f9fac93753e3769df9e0334dbaa. Thanks Hervé Le Roy for the report.
2021-12-04Refs #33333 -- Fixed ↵Mariusz Felisiak
PickleabilityTestCase.test_annotation_with_callable_default() crash on Oracle. Grouping by LOBs is not allowed on Oracle. This moves a binary field to a separate model.
2021-12-03Fixed #33078 -- Added support for language regions in i18n_patterns().Maxim Piskunov
2021-12-03Refs #33078 -- Added extra assertions to ↵Mariusz Felisiak
MiscTests.test_get_language_from_path_real().
2021-12-03Fixed #33333 -- Fixed setUpTestData() crash with models.BinaryField on ↵Mariusz Felisiak
PostgreSQL. This makes models.BinaryField pickleable on PostgreSQL. Regression in 3cf80d3fcf7446afdde16a2be515c423f720e54d. Thanks Adam Zimmerman for the report.
2021-12-03Fixed #33339 -- Made QuerySet.bulk_create() use TO_NCLOB() for TextFields on ↵Georgi Yanchev
Oracle.
2021-12-02Removed unused country argument from GeoIP2._check_query().Nick Pope
Unused since its introduction in 79e68c225b926302ebb29c808dda8afa49856f5c.
2021-12-02Removed redundant GeoIP2._check_query() calls.Nick Pope
2021-12-02Removed unused GeoIP2._cache attribute.Nick Pope
Unused since its introduction in 79e68c225b926302ebb29c808dda8afa49856f5c.
2021-12-02Moved unnecessary inner import in GeoIP2.geos().Nick Pope
2021-12-02Updated various links to HTTPS and new locations.Mariusz Felisiak
Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
2021-12-02Fixed #33334 -- Alphabetized form and model fields in reference docs.Shivam Durgbuns
2021-12-02Fixed #33282 -- Fixed a crash when OR'ing subquery and aggregation lookups.Simon Charette
As a QuerySet resolves to Query the outer column references grouping logic should be defined on the latter and proxied from Subquery for the cases where get_group_by_cols is called on unresolved expressions. Thanks Antonio Terceiro for the report and initial patch.
2021-12-02Refs #32690 -- Altered lookups Query rhs alterations during initialization.Simon Charette
Having it happen at the lookup creation time ensures entry points called before the compilation phase (e.g. get_group_by_cols) don't have to duplicate the logic in charge of altering Query instances used as rhs. It also has the nice effect of reducing the amount of time the alteration logic to once as opposed to multiple times if the queryset is compiled more than once.
2021-12-01Fixed #30398 -- Added CONN_HEALTH_CHECKS database setting.Przemysław Suliga
The CONN_HEALTH_CHECKS setting can be used to enable database connection health checks for Django's persistent DB connections. Thanks Florian Apolloner for reviews.
2021-11-30Fixed #33047 -- Fixed CheckConstraint crash with GIS lookups on PostGIS and ↵Claude Paroz
MySQL GIS backends. Thanks Daniel Swain for the report and Arsalan Ghassemi for the initial patch. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-11-30Added stub release notes and release date for 3.2.10, 3.1.14 and 2.2.25.Mariusz Felisiak
2021-11-30Refs #25706 - Removed inline JavaScript from OpenLayers template.Claude Paroz
This allows setting a Content-Security-Policy HTTP header.
2021-11-29Refs #32800 -- Renamed _sanitize_token() to _check_token_format().Chris Jerdonek
2021-11-29Fixed #32800 -- Changed CsrfViewMiddleware not to mask the CSRF secret.Chris Jerdonek
This also adds CSRF_COOKIE_MASKED transitional setting helpful in migrating multiple instance of the same project to Django 4.1+. Thanks Florian Apolloner and Shai Berger for reviews. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-11-29Fixed #32545 -- Improved admin widget for raw_id_fields for UUIDFields.Shubh1815
Co-Authored-By: Jerome Leclanche <jerome@leclan.ch>
2021-11-29Fixed #33322 -- Fixed loss of assigned related object when saving relation ↵Hannes Ljungberg
with bulk_update().
2021-11-26Refs #33301 -- Made SimpleTestCase.assertFormError()/assertFormsetErrors() ↵Baptiste Mispelon
raise ValueError for non test client responses.
2021-11-26Added tests for SimpleTestCase.assertFormError()/assertFormsetErrors().Baptiste Mispelon
2021-11-26Fixed #33301 -- Clarified the type of arguments required by custom assertions.Baptiste Mispelon
2021-11-26Refs #33163 -- Corrected example of connection signal handlers in ↵Mariusz Felisiak
AppConfig.ready().
2021-11-26Fixed #33303 -- Changed messages' level tags on MESSAGE_TAGS setting change.Hasan Ramezani
2021-11-25Fixed #32397 -- Made startapp/startproject management commands set User-Agent.Ad Timmering
This sets User-Agent to 'Django/<version>'.
2021-11-25Removed unneeded can_use_chunked_reads feature flag on SQLite.Mariusz Felisiak
Unneeded since c0e3c65b9d1b26cfc38137b7666ef0e108aab77f.
2021-11-25Fixed #33024 -- Fixed height of admin selector boxes in collapsed fieldset.Shubh1815
Thanks Tom Carrick for the review.
2021-11-24Fixed typo in docs/releases/4.0.txt.Ryuji Tsutsui
2021-11-24Fixed #4282 -- Made startapp/startproject management commands honor umask.Ad Timmering
Co-authored-by: Christian Schmitt <c.schmitt@briefdomain.de>
2021-11-24Removed unneeded supports_combined_alters feature flag on Oracle.Mariusz Felisiak
supports_combined_alters is False by default.
2021-11-24Fixed #33298 -- Added docs and tests for using Q objects with ↵mgaligniana
get_object_or_404()/get_list_or_404().
2021-11-24Removed unneeded @skipUnlessDBFeature('supports_combined_alters').Tim Graham
The test acts a regression test for 715ccfde24f9f2b7f6710429370a1eff3c78fc2a if the feature is True, but it works on other backends too.
2021-11-24Fixed typo in delete test docstring.Tim Graham
2021-11-23Fixed #33310 -- Removed unused rule from admin CSS.Álvaro Pelegrina Fernández
Unused since 30e59705fc3e3e9e8370b965af794ad6173bf92b.
2021-11-23Fixed #33309 -- Fixed QuerySet.distinct() crash on mixed case annotation.arsalan.ghassemi
2021-11-23Fixed #33304 -- Allowed passing string expressions to Window(order_by).Simon Charette
2021-11-23Refs #33304 -- Enclosed aggregate ordering logic in an expression.Simon Charette
This greatly simplifies the implementation of contrib.postgres' OrderableAggMixin and allows for reuse in Window expressions.
2021-11-23Corrected signatures of QuerySet's methods.Mariusz Felisiak
2021-11-22Corrected isort example in coding style docs.Mariusz Felisiak
Follow up to e74b3d724e5ddfef96d1d66bd1c58e7aae26fc85.
2021-11-22Fixed #33302 -- Made element_id optional argument for json_script template ↵Baptiste Mispelon
filter. Added versionchanged note in documentation
2021-11-22Corrected "pip install" call in coding style docs.Paolo Melchiorre