summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2021-12-22Refs #33355 -- Optimized Trunc() on SQLite by using f-strings.Adam Johnson
Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
2021-12-22Refs #33355 -- Added missing tests for database functions and expression on ↵Adam Johnson
null values.
2021-12-21Fixed #32600 -- Fixed Geometry collections and Polygon segmentation fault on ↵Brenton Partridge
macOS ARM64.
2021-12-21Refs #24121 -- Added __repr__() to BaseFormSet.Baptiste Mispelon
2021-12-21Fixed typo in django/forms/widgets.py.vavanade
2021-12-21Optimized MiddlewareMixin coroutine check.Adam Johnson
2021-12-21Optimized django.template.autoreload.get_template_directories() a bit.Adam Johnson
2021-12-21Fixed #33374 -- Fixed ExpressionWrapper annotations with full queryset.David Wobrock
2021-12-20Fixed #33367 -- Fixed URLValidator crash in some edge cases.mendespedro
2021-12-20Fixed #33368 -- Fixed parse_duration() crash on invalid separators for ↵mendespedro
decimal fractions.
2021-12-17Changed signatures of setting_changed signal receivers.Adam Johnson
2021-12-17Fixed #33366 -- Fixed case handling with swappable setting detection in ↵Simon Charette
migrations autodetector. The migration framework uniquely identifies models by case insensitive labels composed of their app label and model names and so does the app registry in most of its methods (e.g. AppConfig.get_model) but it wasn't the case for get_swappable_settings_name() until this change. This likely slipped under the radar for so long and only regressed in b9df2b74b98b4d63933e8061d3cfc1f6f39eb747 because prior to the changes related to the usage of model states instead of rendered models in the auto-detector the exact value settings value was never going through a case folding hoop. Thanks Andrew Chen Wang for the report and Keryn Knight for the investigation.
2021-12-16Fixed #33350 -- Reallowed using cache decorators with duck-typed HttpRequest.Mariusz Felisiak
Regression in 3fd82a62415e748002435e7bad06b5017507777c. Thanks Terence Honles for the report.
2021-12-16Fixed #30127 -- Deprecated name argument of cached_property().mgaligniana
2021-12-16Fixed admin CSS for calendar widget for RTL languages.ahmadekhalili
Thanks Theodore Ni and Shai Berger for reviews.
2021-12-15Fixed #33316 -- Added pagination to admin history view.mgaligniana
2021-12-15Refs #33316 -- Moved paginator styles to base.css.mgaligniana
2021-12-15Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued ↵Jacob Walls
relationships. This reduces the likelihood of admin searches issuing queries with excessive joins.
2021-12-14Fixed unescape_string_literal() crash on empty strings.Florian Apolloner
2021-12-14Fixed #33358 -- Fixed handling timedelta < 1 day in schema operations on Oracle.mdalp
2021-12-14Fixed #33361 -- Fixed Redis cache backend crash on booleans.Jeremy Lainé
2021-12-13Improved wording in password validators docs and docstrings.Adam Johnson
2021-12-13Refs #33355 -- Fixed Trunc() with years < 1000 on SQLite.Adam Johnson
Thanks to Nick Pope for spotting the bug in Code Review. Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
2021-12-13Fixed #33351 -- Made path()/re_path() raise TypeError when kwargs argument ↵mendespedro
is not a dict.
2021-12-10Refs #32502 -- Avoided table rebuild when adding fields with no default on ↵Mariusz Felisiak
SQLite.
2021-12-10Fixed DatabaseFeatures.requires_literal_defaults on SQLite.Mariusz Felisiak
This flag is currently unused on SQLite because it doesn't support dropping a DEFAULT clause, however it requires literal defaults, rather than parameterized ones, so we can set it for clarity.
2021-12-10Refs #32502 -- Added SchemaEditor.prepare_default() on SQLite.Mariusz Felisiak
2021-12-10Moved ManagementForm's fields to class attributes.Adam Johnson
This helps introspection, and it follows the comment in BaseForm.__init__() to avoid changing base_fields. Thanks to Silvio Gutierrez and Baptiste Mispelon for investigating.
2021-12-10Corrected return value of ForeignKey.db_check().Adam Johnson
Field.db_check() should return None or a SQL string. Returning [] happened to work because it’s falsey.
2021-12-09Fixed #33340 -- Fixed unquoted column names in queries used by DatabaseCache.Arsa
2021-12-09Refs #32338 -- Added Boundfield.legend_tag().David Smith
2021-12-08Fixed #33319 -- Fixed crash when combining with the | operator querysets ↵Ömer Faruk Abacı
with aliases that conflict.
2021-12-08Refs #33319 -- Added comment about keys/values assertion in ↵Ömer Faruk Abacı
Query.change_aliases().
2021-12-08Fixed #33346 -- Fixed SimpleTestCase.assertFormsetError() crash on a formset ↵Baptiste Mispelon
named "form". Thanks OutOfFocus4 for the report. Regression in 456466d932830b096d39806e291fe23ec5ed38d5.
2021-12-08Fixed #19721 -- Allowed admin filters to customize the list separator.Shreya Bamne
2021-12-08Refs #32290 -- Optimized construct_relative_path() by delay computing ↵Keryn Knight
has_quotes.
2021-12-07Refs #25265 -- Allowed customizing Query's datastructure classes.Erik Cederstrand
2021-12-07Fixed #31765 -- Enforced enhanced ALTER TABLE behavior for SQLite connections.Adam Johnson
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-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-03Fixed #33078 -- Added support for language regions in i18n_patterns().Maxim Piskunov
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>