David Smith
27b399d235
Fixed #34547 -- Deprecated DatabaseOperations.field_cast_sql().
2023-08-31 06:18:07 +02:00
Nick Pope
500e01073a
Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices.
2023-08-30 22:57:40 -03:00
John Whitman
68a8996bdf
Fixed #34799 -- Made MySQL introspection skip cross-database relations.
2023-08-30 12:46:15 +02:00
Olivier Tabone
3f8dbe267d
Fixed #34757 -- Added support for following redirects to AsyncClient.
2023-08-30 06:12:25 +02:00
Simon Charette
1ac397674b
Refs #34784 -- Added fr_CA locale formats.
...
Formating rules sourced from
- https://www.btb.termiumplus.gc.ca/tpv2guides/guides/clefsfp/index-fra.html?lang=fra&lettr=indx_catlog_d&page=9lcOojjUrxt8.html
- https://vitrinelinguistique.oqlf.gouv.qc.ca/21241/la-typographie/nombres/ecriture-des-dates-et-des-heures-dans-certains-contextes-techniques
- https://en.wikipedia.org/wiki/Date_and_time_notation_in_Canada
- https://metacpan.org/dist/DateTime-Locale/view/lib/DateTime/Locale/fr_CA.pod
2023-08-28 21:37:23 +02:00
Claude Paroz
fdf14cfc01
Fixed #34784 -- Adjusted SHORT_DATE_FORMAT in various French variants.
2023-08-28 21:36:36 +02:00
sarahboyce
f6ed2c36dd
Fixed #34787 -- Fixed autoreloader crash when run from installed script on Windows.
2023-08-28 12:57:14 +02:00
Mariusz Felisiak
24f1a38b37
Added stub release notes and release date for 4.2.5, 4.1.11, and 3.2.21.
2023-08-28 06:10:20 +02:00
Mariusz Felisiak
11920e7795
Fixed #34709 -- Raised BadRequest for non-UTF-8 requests with the application/x-www-form-urlencoded content type.
...
Thanks Eki Xu for the report.
2023-08-25 21:27:22 +02:00
Mariusz Felisiak
9c37103a98
Refs #33507 -- Doc'd using UUID data type on MariaDB 10.7+ in UUIDField docs.
...
Follow up to 7cd187a5ba
.
2023-08-25 11:24:21 +02:00
François Freitag
b7fe36ad37
Refs #34730 -- Made Message importable from django.contrib.messages.
2023-08-25 06:55:12 +02:00
Muzaffer Cikay
1081d24f99
Simplified QuerySet.update_or_create() a bit.
2023-08-25 06:39:35 +02:00
François Freitag
7bba231b67
Refs #24121 -- Added __repr__() to Message.
2023-08-24 11:06:13 +02:00
Mariusz Felisiak
95b8449158
Corrected AsyncRequestFactory's docstring.
...
All AsyncRequestFactory methods are still synchronous callables.
2023-08-24 10:31:52 +02:00
Mariusz Felisiak
9942a3e49b
Avoided counting exceptions in AsyncClient docs.
...
Follow up to ad6bb20557
.
2023-08-24 05:19:52 +02:00
Luca Allulli
c59be9f1da
Improved formset docs by using a set instead of a list in the custom validation example.
2023-08-23 22:24:43 -03:00
David Sanders
76c3e310dd
Fixed #34744 -- Prevented recreation of migration for constraints with a dict_keys.
...
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-08-23 11:42:18 +02:00
Mariusz Felisiak
dd45d5223b
Fixed ResourceWarning from unclosed SQLite connection on Python 3.13+.
...
- backends.sqlite.tests.ThreadSharing.test_database_sharing_in_threads
- backends.tests.ThreadTests.test_default_connection_thread_local:
on SQLite, close() doesn't explicitly close in-memory connections.
- servers.tests.LiveServerInMemoryDatabaseLockTest
- test_runner.tests.SQLiteInMemoryTestDbs.test_transaction_support
Check out https://github.com/python/cpython/pull/108015 .
2023-08-23 09:09:23 +02:00
Olivier Tabone
a9e0f3d301
Refs #34757 -- Moved HTTP redirect logic to django.test.client.ClientMixin.
2023-08-23 07:19:48 +02:00
Keryn Knight
428023e267
Fixed #34781 -- Updated logging ref docs for django.server's request extra context value.
2023-08-22 22:43:18 -03:00
konsti
48a1929ca0
Removed unnecessary trailing commas in tests.
2023-08-22 12:42:57 +02:00
Natalia
f1c0a3baf7
Added tests for model field's choices iterator/iterable values.
2023-08-22 05:55:23 +02:00
tell-k
6934fc3f6e
Fixed #34788 -- Corrected NUMBER_GROUPING for Japanese.
2023-08-22 05:31:57 +02:00
Florian Zimmermann
fbd16438f4
Fixed #33143 -- Raised RuntimeWarning when performing import-time queries.
2023-08-21 13:44:25 +02:00
Mariusz Felisiak
bd2ff65fdd
Fixed DatabaseCreation.get_test_db_clone_settings() for empty database name on SQLite.
...
Empty string should be considered an in-memory SQLite database.
2023-08-20 21:53:40 +02:00
Mariusz Felisiak
4c85d94bc0
Fixed utils_tests.test_lazyobject.SimpleLazyObjectPickleTestCase.
...
SimpleLazyObjectPickleTestCase executes database queries so it must
inherit from django.test.TestCase.
2023-08-20 16:09:07 +02:00
Juan Alvarez
517d3bb4dd
Fixed #34779 -- Avoided unnecessary selection of non-nullable m2m fields without natural keys during serialization.
...
By using `select_related(None)` instead of `select_related()`, the
unnecessary joins are completely avoided. Note that the current tests
already covers the change, when the field is not `null=True`.
Regression in f9936deed1
.
2023-08-19 10:29:43 +02:00
Mariusz Felisiak
6b965c6000
Fixed #34773 -- Fixed syncing DEFAULT_FILE_STORAGE/STATICFILES_STORAGE settings with STORAGES.
...
Thanks Petr Dlouhý for the report.
Bug in 32940d390a
.
2023-08-18 18:11:24 +02:00
Azat
d25f389211
Added Uyghur language.
2023-08-12 20:37:15 +02:00
Francesco Panico
59f4754704
Fixed #34362 -- Fixed FilteredRelation() crash on conditional expressions.
...
Thanks zhu for the report and Simon Charette for reviews.
2023-08-11 12:32:18 +02:00
Francesco Panico
1506f498fe
Fixed #34743 -- Fixed Meta.constraints validation crash when using pk.
...
Thanks Nwawel A Iroume for the report.
2023-08-11 08:51:29 +02:00
Jingbei Li
9946f0b0d9
Fixed #33817 -- Added support for python-oracledb and deprecated cx_Oracle.
2023-08-10 10:11:53 +02:00
Mariusz Felisiak
59f13ce545
Fixed DatabaseFeatures.supports_primitives_in_json_field on Oracle 21c+.
2023-08-10 08:59:29 +02:00
Mariusz Felisiak
e69a9920e2
Fixed non-deterministic order in SubqueryTests.test_slice_subquery_and_query.
...
Slice on unordered subquery may be non-deterministic in some databases.
2023-08-10 05:33:13 +02:00
Mariusz Felisiak
80a5667c50
Refs #34233 -- Bumped required cx_Oracle to 8.3.
...
This bumps minimum supported versions of cx_Oracle to the first release
to support Python 3.10.
2023-08-09 12:41:47 +02:00
priyank.panchal
439242c594
Fixed #34692 -- Made autoreloader reset cached template loader for default renderer.
2023-08-09 09:09:52 +02:00
Mariana
e02fc58889
Fixed #34586 -- Made QuerySet.create() raise ValueError for reverse one-to-many relations.
2023-08-09 06:59:40 +02:00
Nick Pope
aa3cb3f372
Added IntegerField tests for checks for invalid choices.
2023-08-08 18:57:15 +02:00
Mateusz Więckowski
5aa4c0b675
Fixed #34542 -- Made createsuperuser handle required blank fields in non-interactive mode.
2023-08-08 09:26:28 +02:00
Olivier Tabone
0f3b1a783d
Fixed #34739 -- Added GEOSGeometry.equals_identical() method.
2023-08-05 18:23:38 +02:00
anthony kugel
8edaf07a28
Fixed #15799 -- Doc'd that Storage._open() should raise FileNotFoundError when file doesn't exist.
2023-08-04 17:39:05 +02:00
Mariusz Felisiak
0336aa6672
Fixed TransactionalTests.test_password_with_at_sign() isolation on Oracle.
2023-08-04 17:36:04 +02:00
Simon Charette
3434dbd39d
Fixed #34754 -- Fixed JSONField check constraints validation on NULL values.
...
The __isnull lookup of JSONField must special case
Value(None, JSONField()) left-hand-side in order to be coherent with
its convoluted null handling.
Since psycopg>=3 offers no way to pass a NULL::jsonb the issue is
resolved by optimizing IsNull(Value(None), True | False) to
True | False.
Regression in 5c23d9f0c3
.
Thanks Alexandre Collet for the report.
2023-08-04 10:14:03 +02:00
Mariusz Felisiak
2b582387d5
Fixed #34760 -- Dropped support for SQLite < 3.27.
2023-08-04 06:35:13 +02:00
Olivier Tabone
f46a6b2816
Fixed #34686 -- Added support for GEOS 3.12.
2023-08-04 05:53:29 +02:00
Mariusz Felisiak
4555a823fd
Refs #33713 -- Removed unnecessary version check in DatabaseFeatures.update_can_self_select on MariaDB.
...
Follow up to 19297de2fe
.
2023-08-03 19:44:36 +02:00
Mariusz Felisiak
b719688b21
Fixed #34761 -- Dropped support for MySQL < 8.0.11.
2023-08-03 18:54:29 +02:00
David Smith
b3e0170ab5
Fixed #34756 -- Fixed docs HTML build on Sphinx 7.1+.
2023-08-03 08:01:06 +02:00
Mariusz Felisiak
9b9c805ced
Removed unneeded escapes in regexes.
...
Special characters lose their special meaning inside sets of characters.
"-" lose its special meaning if it's placed as the first or last
character.
Follow up to 7c6b66383d
.
2023-08-02 19:53:16 +02:00
Albert Defler
7cd187a5ba
Fixed #33507 -- Used UUID data type on MariaDB 10.7+.
...
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-08-02 14:11:04 +02:00