1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
Commit Graph

32492 Commits

Author SHA1 Message Date
Michael
e29d1870dd
Improved variable names in QuerySet.delete(). 2024-01-02 05:30:16 +01:00
Zowie Beha
8fcd7b01ee Fixed #35072 -- Corrected Field.choices description in models topic. 2024-01-01 18:53:01 +01:00
Nick Pope
c72001644f Updated DatabaseFeatures.bare_select_suffix on Oracle 23c.
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-4EB70EB9-4EE3-4FE2-99C4-86F7AAC60F12
2024-01-01 10:59:16 +01:00
Nick Pope
a816efe238 Supported native aggregation over INTERVALs on Oracle 23c.
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-CE5F8EED-934D-458D-B81C-6C8D617F31A2
2024-01-01 10:53:00 +01:00
Nick Pope
39a00f39c5 Added note about SELECT index in GROUP BY on Oracle 23c.
As this isn't enabled by default and would be unsafe to enforce, just
add a comment to note that this has to stay disabled.

https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-EDDF041F-C10D-4334-838A-706227D7BFE0
2024-01-01 10:51:27 +01:00
Mariusz Felisiak
d88ec42bd0
Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
Nick Pope
81ccf92f15
Used JSON_OBJECT database function on PostgreSQL 16+. 2023-12-31 09:07:19 +01:00
Paul Bailey
9d52e0720f
Fixed #35051 -- Prevented runserver from removing non-zero Content-Length for HEAD requests. 2023-12-31 08:32:37 +01:00
Salvo Polizzi
dc26a3d563 Fixed #35069 -- Fixed typo in docs/ref/forms/api.txt. 2023-12-30 14:28:10 +01:00
Nick Pope
94b6f101f7
Fixed #29049 -- Added slicing notation to F expressions.
Co-authored-by: Priyansh Saxena <askpriyansh@gmail.com>
Co-authored-by: Niclas Olofsson <n@niclasolofsson.se>
Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Abhinav Yadav <abhinav.sny.2002@gmail.com>
2023-12-30 08:24:30 +01:00
Nicolas Lupien
561e16d6a7
Fixed #34670 -- Improved loading of theme in admin.
Thanks Sarah Abderemane for the review.
2023-12-30 08:03:13 +01:00
Simon Charette
e16d0c176e Fixed #35064 -- Fixed Window(order_by) crash with DecimalFields on SQLite.
This avoids cast of Window(order_by) for DecimalFields on SQLite.

This was achieved by piggy-backing ExpressionList which already
implements a specialized as_sqlite() method to override the inherited
behaviour of Func through SQLiteNumericMixin.

Refs #31723.

Thanks Quoates for the report.
2023-12-29 09:07:31 +01:00
Simon Charette
90d365d869 Refs #35064 -- Made OrderableAggMixin avoid creating empty OrderByList.
This paves the way for making OrderByList a simple shim over
ExpressionList which requires at least a single item to be provided.
2023-12-29 09:07:27 +01:00
Mohammad Yameen
bb560651c4
Corrected method/function wording in tutorial 3. 2023-12-29 06:01:18 +01:00
virgitl.io
acfdf39506
Added backticks around name argument in tutorial 3. 2023-12-29 05:57:30 +01:00
Mariusz Felisiak
0be6dde817
Corrected code-block directives in docs. 2023-12-28 19:52:15 +01:00
Christian Clauss
ebf9320838
Removed unnecessary list() calls on sorted(). 2023-12-28 10:58:37 +01:00
Rigoberto Villalta
63076e3693
Fixed #35065 -- Corrected border color for autocomplete fields with errors in admin. 2023-12-28 10:20:47 +01:00
David D Lowe
61aae838f7 Improved DEFAULT_FROM_EMAIL/SERVER_EMAIL docs.
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-12-28 08:30:50 +01:00
Mariusz Felisiak
751d732a38
Fixed #35056 -- Fixed system check crash on reverse m2m relations with related_name in ModelAdmin.filter_horizontal/vertical.
Thanks Thomas Feldmann for the report.

Regression in 107865780a.
2023-12-27 20:36:22 +01:00
David Smith
21b0b23a67 Refs #35058 -- Made OGRGeomType aware of additional WKB geometry types.
This commit increases OGRGeomType's knowledge of WKB types and allows
for improved error messages when Django doesn't yet have a corresponding
class to wrap a given type.
2023-12-27 11:40:28 +01:00
Natalia
7c26dbf6ef Improved cache.tests.FileBasedCacheTests.test_touch to avoid flakiness due to slow file system access. 2023-12-27 06:05:33 +01:00
David Smith
2a2481f5a2
Refs #35058 -- Added __repr__() to OGRGeomType. 2023-12-26 21:23:33 +01:00
David Wobrock
14917c9ae2 Fixed #35050 -- Fixed prefixing field names in FilteredRelation().
Thanks Mark Zorn for the report.

Regression in 59f4754704.
2023-12-23 17:35:13 +01:00
David Smith
623597c786
Refs #35058 -- Added support for WKB > 2GB with GDAL 3.3+.
GDAL 3.3.0 added OGR_G_WkbSizeEx() and OGR_G_CreateFromWkbEx() to handle
WKB > 2GB. Prefer these new functions when available.

https://github.com/OSGeo/gdal/blob/master/NEWS.md#ogr-330---overview-of-changes
2023-12-23 17:26:22 +01:00
David Wobrock
7045661069 Fixed #35022 -- Fixed RenameIndex() crash on unnamed indexes if exists unique constraint on the same fields. 2023-12-22 12:47:17 +01:00
Mariusz Felisiak
6c08dba517
Fixed #35054 -- Fixed crash on Oracle when fetching JSONFields with oracledb 2.0.0. 2023-12-22 09:43:45 +01:00
Nicolas Lupien
2bf46c3825 Fixed #34658 -- Added SimpleTestCase.assertNotInHTML(). 2023-12-22 08:27:59 +01:00
Rapha S
5c6906cef4
Fixed #35008 -- Added CSS rule for <input> HTML tags with no type.
Minifiers remove the default (text) "type" attribute from "input" HTML
tags. This adds input:not([type]) to make the CSS stylesheet work the
same.
2023-12-22 05:49:05 +01:00
David Smith
3ec15b0bcf Fixed #35005 -- Confirmed support for GDAL 3.8. 2023-12-21 10:35:23 +01:00
David Smith
c709a748ce Fixed #35049 -- Dropped support for GDAL 2.4. 2023-12-20 21:44:11 +01:00
David Smith
fa1d0b11e4 Fixed #35048 -- Dropped support for PROJ 5.x. 2023-12-20 21:06:43 +01:00
Nicolas Lupien
d4c583682e Fixed #35015 -- Updated MySQL notes in migrations topic. 2023-12-20 20:04:42 +01:00
Amin Shah Gilani
47033bfd48
Doc'd that users with unusable passwords cannot request a password reset. 2023-12-19 14:04:04 -03:00
Claude Paroz
08306bad57 Fixed #34411 -- Updated GDAL API to handle vector DataSource's.
Co-authored-by: David Smith <smithdc@gmail.com>
2023-12-18 09:42:04 +01:00
Simon Charette
77278929c8 Fixed #35042 -- Fixed a count() crash on combined queries.
Regression in 59bea9efd2.

Thanks Marcin for the report.
2023-12-16 20:19:24 +01:00
Simon Charette
eea4f92f9a
Refs #34013 -- Registered instance lookups as documented in tests. 2023-12-16 20:05:36 +01:00
Eliana Rosselli
c83c639ba0 Fixed #34909 -- Associated links in admin navigation sidebar with row descriptions.
This adds aria-describedby attribute to the models' links in the admin
navigation sidebar.

Thanks Thibaud Colas for the review.

Co-authored-by: Dara Silvera <dsilvera@octobot.io>
2023-12-15 21:01:00 +01:00
Eliana Rosselli
5b885106a7 Refs #34909 -- Made cosmetic edits to admin navigation template. 2023-12-15 21:01:00 +01:00
Nick Pope
8709fe61ba
Fixed database connection for other alias in PostgreSQL tests on GitHub Actions. 2023-12-15 14:44:35 +01:00
Viicos
e28bd6776d
Added missing import in docs/ref/models/expressions.txt. 2023-12-15 11:17:06 +01:00
Mariusz Felisiak
86c45d8bc6
Fixed typos in docs. 2023-12-15 07:54:02 +01:00
Christian Clauss
0d5e9a32eb
Updated examples for 2.0+ release numbering in installation FAQ. 2023-12-15 06:16:02 +01:00
David Sanders
acfc7e3a73
Added clarifications about the DATABASES.TIME_ZONE setting in docs.
These include:
 - Doc'd which is the default used when DATABASES.TIME_ZONE is None.
 - Doc'd that the database connection's time zone setting is set for
   PostgreSQL and clarified that it may be necessary to set it to the
   same value as TIME_ZONE.

Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
2023-12-14 14:35:04 -03:00
Nanami
5b52376d9f
Fixed HTML code snippet in Tutorial's part 7 when customizing the admin's site header. 2023-12-14 10:09:34 -03:00
Tobias Krönke
d6c868a184 Fixed #35000 -- Skipped declaring empty string defaults on BLOB/TEXT field on MySQL.
Empty string defaults are redundant on MySQL and prevent use of
ALGORITHM=INSTANT.
2023-12-14 10:59:25 +01:00
Tobias Krönke
4b7fe146cc Refs #32503 -- Added assertion for effective default value when altering TextField to non-nullable with default. 2023-12-14 10:53:37 +01:00
Emanuel Andrecut
e72b2826ff Fixed #35032 -- Corrected Char32UUIDField implementation in 5.0 release notes.
This fixes Char32UUIDField implementation in 5.0 release notes causing
records with UUIDFields created using pre-Django 5.0 and CHAR(32) not
being able to be saved anymore after upgrading and keeping the CHAR(32)
columns.

Regression in 7cd187a5ba.
2023-12-14 09:26:24 +01:00
Mariusz Felisiak
2190096f50
Used model's Options.model_name instead of object_name.lower().
Follow up to 20d487c27b.
2023-12-14 09:23:12 +01:00
Tom Carrick
0eaad0bb59
Removed unnecessary write permission from screenshots Github workflow. 2023-12-13 15:38:59 -03:00