1
0
mirror of https://github.com/django/django.git synced 2024-12-27 11:35:53 +00:00
Commit Graph

32085 Commits

Author SHA1 Message Date
nessita
7a21ea5464 [5.0.x] Fixed #34958 -- Fixed isolation of messages_tests.tests.TestLevelTags.test_lazy.
Backport of 1b56b24f81 from main
2023-11-13 09:38:00 +01:00
Adam Johnson
8eba6efbf0 [5.0.x] Fixed #34457 -- Restored output for makemigrations --check.
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>

Backport of f7389c4b07 from main
2023-11-09 10:44:07 -03:00
Jacob Walls
97a78121b3 [5.0.x] Fixed typos in docs/ref/models/fields.txt.
Backport of 427f0ed98d from main
2023-11-09 09:58:53 +03:00
Simon Charette
73869a5163 [5.0.x] Refs #30446, Refs #34944 -- Fixed crash when adding GeneratedField with string Value().
This should allow smarter output_field inferring in functions dealing
with text expressions.

Regression in f333e3513e.

Backport of 8b1acc0440 from main
2023-11-08 16:18:00 +03:00
Simon Charette
0265eaa500 [5.0.x] Fixed #34946 -- Preserved db_default on combined default field addition.
Regression in 7414704e88.
Backport of 8a28e983df from main
2023-11-07 13:33:24 +03:00
Mariusz Felisiak
1383dc75eb [5.0.x] Fixed #34941 -- Fixed fetching decimal db_defaults for DecimalFields on Oracle.
This is a long standing bug in bc91f27a86
that began manifesting in 7414704e88.
Backport of 656192c2c9 from main
2023-11-03 16:29:49 +01:00
Mariusz Felisiak
e2330ccd10 [5.0.x] Refs #34941 -- Skipped OperationTests.test_alter_field_change_nullable_to_decimal_database_default_not_null on Oracle.
Backport of 7a09ba0962 from main
2023-11-03 05:30:08 +01:00
David Sanders
8dde0504f3 [5.0.x] Fixed #34936 -- Fixed migration crash for DecimalField with db_default on SQLite.
CAST() must be wrapped in parentheses to be recognized as an expression on SQLite.

Regression in 7414704e88.

Backport of 797957fb48 from main
2023-11-02 19:59:39 +01:00
Tim Graham
b735b90f43 [5.0.x] Refs #31300 -- Allowed testing GeneratedField without collation.
CockroachDB and Snowflake don't support it.

Backport of 208870b612 from main
2023-11-02 15:48:31 +01:00
Patrick Rauscher
bf8aac3679 [5.0.x] Fixed #34813 -- Doc'd usage of integrity HTML attribute with ManifestStaticFilesStorage.
Backport of 116e225266 from main
2023-11-02 08:26:27 -03:00
Mariusz Felisiak
fd593db2fa [5.0.x] Added stub release notes for 4.2.8.
Backport of 36173cf29d from main
2023-11-01 08:25:18 +01:00
Mariusz Felisiak
2d929dd2cc [5.0.x] Added CVE-2023-46695 to security archive.
Backport of 7caf262183 from main
2023-11-01 08:17:30 +01:00
Mariusz Felisiak
bb71d34551 [5.0.x] Fixed CVE-2023-46695 -- Fixed potential DoS in UsernameField on Windows.
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.
2023-11-01 06:18:00 +01:00
Natalia
acd4595ab0 [5.0.x] Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.
Backport of 9b18af4f6f from main
2023-10-30 13:49:12 -03:00
Natalia
c8bc72462d [5.0.x] Refs #15578 -- Made cosmetic edits to fixtures docs.
Backport of b412e5645a from main
2023-10-30 10:33:08 -03:00
Tom Carrick
602835202d [5.0.x] Fixed #34932 -- Restored varchar_pattern_ops/text_pattern_ops index creation when deterministic collaction is set.
Regression in f3f9d03edf (4.2) and
8ed25d65ea (5.0).

Backport of 34b411762b from main
2023-10-30 11:08:03 +01:00
Mariusz Felisiak
329ae408bf [5.0.x] Fixed typo in docs/topics/forms/index.txt.
Backport of 46df3ab244 from main
2023-10-30 05:17:55 +01:00
Sarah Boyce
dfdca516ea [5.0.x] Fixed typos in docs/ref/models/expressions.txt.
Backport of 8992a0489c from main
2023-10-28 14:22:00 +02:00
lufafajoshua
c8ac50c201 [5.0.x] Fixed #30601 -- Doc'd the need to manually revert all app state on transaction rollbacks.
Backport of aa80b357fb from main
2023-10-27 23:33:16 -03:00
Marc Gibbons
4e1bb31b39 [5.0.x] Doc'd writing integration tests for the system check framework.
Backport of 8d9c0e4e24 from main
2023-10-27 11:44:40 +02:00
Izzy Hyman
a71f611a9e [5.0.x] Fixed typo in docs/ref/contrib/gis/geos.txt.
Backport of c42250a703 from main
2023-10-27 05:32:03 +02:00
Leo Suarez
89e539488a [5.0.x] Fixed #15578 -- Stated the processing order of fixtures in the fixtures docs.
Also, added details about loading multiple fixtures and unified line wrapping
at 79 cols.

Co-Authored-By: Aniketh Babu <anikethbabu@gmail.com>
Co-Authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-Authored-By: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 334dc073b1 from main
2023-10-26 21:51:40 -03:00
Mariusz Felisiak
415ef34c4c [5.0.x] Added missing pycon directives in various docs.
Backport of 718b32c691 from main
2023-10-25 12:27:56 +02:00
Tim Bell
8b18e0bb3b [5.0.x] Fixed #27403 -- Doc'd that QuerySet.prefetch_related() doesn't guarantee transactional consistency.
Added a note about the potential race condition in prefetch_related()
that could produce an inconsistent result, one that does not correspond
to any point in the database history.

Backport of ee104251c4 from main
2023-10-25 10:22:56 +02:00
Mariusz Felisiak
3361668ff4 [5.0.x] Added stub release notes and release date for 4.2.7, 4.1.13, and 3.2.23.
Backport of fdd1323b9c from main
2023-10-25 05:43:00 +02:00
Mariusz Felisiak
00805ff436 [5.0.x] Fixed #34923 -- Avoided initializing LEVEL_TAGS when importing django.contrib.messages.
Regression in b7fe36ad37.

Thanks James Gillard for the report.

Backport of 311718feb5 from main
2023-10-24 14:12:40 -03:00
Natalia
25fec8940b [5.0.x] Bumped version for 5.0 beta 1. 2023-10-23 15:41:31 -03:00
Nick Pope
cc5901fa8e [5.0.x] Fixed #34899 -- Added blank choice to forms' callable choices lazily.
Backport of 171f91d9ef from main
2023-10-23 14:54:37 -03:00
Nick Pope
bbe90f3c00 [5.0.x] Refs #34899 -- Extracted Field.flatchoices to flatten_choices helper function.
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 74afcee234 from main
2023-10-23 14:53:13 -03:00
Nick Pope
711c054722 [5.0.x] Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator.
This makes it easier to work with lazy iterators used for callables,
etc. when extracting items or comparing to lists, e.g. during testing.

Also added `BaseChoiceIterator.__iter__()` to make it clear that
subclasses must implement this and added `__all__` to the module.

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>

Backport of 07fa79ef2b from main
2023-10-23 14:51:27 -03:00
David Sanders
08aa336af4 [5.0.x] Fixed #34903, Refs #34825 -- Made workers initialization respect empty set of used connections.
Thanks to David Smith for the investigation & patch.

Regression in 2128a73713.
Follow up to a5905b164d.

Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Backport of 68d0159b6d from main
2023-10-23 05:42:39 +02:00
David Sanders
4dec7eded9 [5.0.x] Fixed #34921 -- Fixed crash of warning for unbound naive datetimes.
Backport of b5311ee232 from main
2023-10-22 19:34:13 +02:00
Claire Pritchard
4979e83d08 [5.0.x] Fixed typo in docs/releases/4.2.txt.
Backport of 61cc0e6f2c from main
2023-10-22 11:02:40 +02:00
Lance Goyke
9a5b84ba57 [5.0.x] Restructured writing documentation contributing guide.
This trims and clearly delineates the how to guide from the subsequent
explanation with additional subheadings.

These changes have been discussed with Daniele Procida
at the DjangoCon US 2023 sprints.

Backport of a680ac7d77 from main
2023-10-21 16:56:16 +02:00
David Smith
d0c8b45d4a [5.0.x] Corrected note about using accents in writing documentation contributing guide.
Backport of 1611577102 from main
2023-10-21 09:40:04 +02:00
Chris Frisina
26dddf3752 [5.0.x] Fixed #34912 -- Fixed size of back links and bookmarklet help in admindocs pages.
Backport of be8b25def4 from main
2023-10-21 09:01:57 +02:00
laserhyena
bba963df50 [5.0.x] Fixed #34911 -- Corrected HTML heading levels on admindocs' main page.
Backport of 21382e2743 from main
2023-10-20 06:20:32 +02:00
ontowhee
31bdf67a9c [5.0.x] Fixed #34905 -- Corrected admin's main content element rendered in <main> tag.
Regression in 91e617c743.

Thanks Tom Carrick for the report.
Backport of 89d2ae257b from main
2023-10-19 17:26:15 +02:00
Mariusz Felisiak
448510a94b [5.0.x] Refs #34900, Refs #34118 -- Updated assertion in test_skip_class_unless_db_feature() test on Python 3.12.1+.
Python 3.12.1+ no longer includes skipped tests in the number of
running tests. Check out:

https://github.com/python/cpython/issues/110890#issuecomment-1763458686
https://github.com/python/cpython/pull/106588
Backport of 20b7aac7ca from main
2023-10-16 06:28:13 +02:00
Simon Charette
4ccca9eedc [5.0.x] Fixed #34798 -- Fixed QuerySet.aggregate() crash when referencing expressions containing subqueries.
Regression in 59bea9efd2,
complements e5c844d6f2.

Refs #28477, #34551.

Thanks Haldun Komsuoglu for the report.

Backport of 3b4a571275 from main
2023-10-16 06:15:08 +02:00
Adam Johnson
12a19321b4 [5.0.x] Refs #34840 -- Improved release note describing index regression.
Backport of 73b2c63127 from main
2023-10-15 10:27:41 +02:00
Mariusz Felisiak
c3cf518a80 [5.0.x] Refs #34840 -- Fixed test_validate_nullable_textfield_with_isnull_true() on databases that don's support table check constraints.
Thanks Tim Graham for the report.
Backport of 9fd3a0ffc8 from main
2023-10-12 20:02:02 +02:00
lufafajoshua
d4bbdf5337 [5.0.x] Fixed #34808 -- Doc'd aggregate function's default argument.
Backport of 8adc7c86ab from main
2023-10-11 16:10:30 -03:00
Mariana
0bbe6ca2ac [5.0.x] Fixed #12241 -- Preserved query strings when using "Save and continue/add another" in admin.
Co-authored-by: Grady Yu <gradyy@users.noreply.github.com>
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
Co-authored-by: Matthew Newton <matthewn@berkeley.edu>

Backport of fc62e17778 from main
2023-10-11 12:46:10 +02:00
Mariusz Felisiak
bcc6a8ee88 [5.0.x] Refs #34882 -- Fixed GISFunctionsTests.test_asgeojson_option_0() test on Oracle.
This uses an example with the same precision for all databases.

Follow up to 96e7a752b6.
Backport of 6e369f36f2 from main
2023-10-11 12:45:44 +02:00
Natalia
9454d4feb1 [5.0.x] Reorganized tutorial's part 4 to better understand changes needed in URLConf.
Backport of d21ab70223 from main
2023-10-10 14:05:36 -03:00
Carlton Gibson
fa6e6f3113
[5.0.x] Refs #26029 -- Improved get_storage_class() deprecation warning with stacklevel=2.
Addition of the `stacklevel` argument shows the source of the
deprecated call, making updating the client code simpler.
2023-10-10 10:28:23 +02:00
sarahboyce
33ad36a8ec [5.0.x] Refs #34043 -- Clarified how to test UI changes.
Backport of e083f3082c from main
2023-10-09 11:51:32 +02:00
Mariusz Felisiak
5aa4fb68ba [5.0.x] Added backticks to setuptools in docs.
Backport of 54b23b1835 from main
2023-10-09 09:56:26 +02:00
sag᠎e
1e9f66e8e0 [5.0.x] Added missing import in docs/ref/contrib/contenttypes.txt.
Backport of 958e4cfe42 from main
2023-10-07 06:59:24 +02:00