Commit Graph

32354 Commits

Author SHA1 Message Date
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
Mariusz Felisiak 8fa7c2ae88
Improved test coverage for django.contrib.sessions.backends.base.SessionBase. 2023-12-13 12:51:58 +01:00
Tom Carrick 4aae864463 Fixed #35012 -- Restored wrapping admin fieldsets with multiple fields per line.
Thanks James Gillard for the report.

Regression in 729266c6f2.
2023-12-13 06:04:18 +01:00
Tom Carrick ed65610653
Changed the screenshots Github workflow to run in the PR's branch by using pull_request as event trigger.
The original event trigger pull_request_target runs against the target branch (main), not the branch associated with the PR. Consequently, any new screenshots added in a PR are not captured, and the available screenshots reflect the state of the main branch code, not the code from the PR's branch.

This update addresses the issue by changing the event trigger to pull_request. However, it's important to note that this adjustment breaks the comments functionality since the action no longer has write permissions.
2023-12-12 13:22:32 -03:00
Nick Pope a93375e8ab Fixed #34305 -- Changed GeoIP2 tests to use MaxMind test databases.
GEOIP_SETTINGS is removed from the global scope as this prevents
modifications to the settings using @override_settings in tests.

Additional improvements now that we have stable test databases include:

- Made testing more comprehensive and improved coverage
- Patched socket.gethostbyname() for whole test case
- Added testing of non-free GeoIP2 databases

Co-authored-by: Tom Forbes <tom@tomforb.es>
2023-12-12 09:58:26 +01:00
Nick Pope ed4f83782d Refs #34305 -- Added SimpleTestCase.enterClassContext() on Python < 3.11. 2023-12-12 09:15:14 +01:00
Simon Charette b0ad41198b Fixed #34013 -- Added QuerySet.order_by() support for annotation transforms.
Thanks Eugene Morozov and Ben Nace for the reports.
2023-12-12 05:51:33 +01:00
Mariusz Felisiak fcf95e5927
Fixed #35018 -- Fixed migrations crash on GeneratedField with BooleanField as output_field on Oracle < 23c.
Thanks Václav Řehák for the report.

Regression in f333e3513e.
2023-12-12 05:39:11 +01:00
Sarah Boyce b287af5dc9 Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys.
Thanks Deb Kumar Das for the report.

Regression in f333e3513e.
2023-12-08 09:46:11 +01:00
Yashas eeb2119985 Fixed #35016 -- Doc'd that DATABASES["OPTIONS"] are passed to new PostgreSQL connections. 2023-12-08 08:21:51 +01:00
Avaneesh Kumar 705b1702bd Fixed #34742 -- Made CommonMiddleware raise APPEND_SLASH RuntimeError on DELETE requests. 2023-12-08 05:56:36 +01:00
Mariusz Felisiak 5b3b791e90
Fixed #35024 -- Fixed model instance creation crash on GeneratedField.output_field with backend converters.
Regression in d9de74141e.

This is a long standing issue, however it caused a crash of
GeneratedFields for all output fields that have backend-specific
converters when the RETURNING clause is not supported
(MySQL and SQLite < 3.35).
That's why severity was exacerbated.
2023-12-07 20:50:18 +01:00
Nick Pope 2dca98f4f7 Refs #34986 -- Added PyPy 3.10 with PostgreSQL to daily builds. 2023-12-07 09:44:34 +01:00
Nick Pope af6e7e3de8 Refs #34986 -- Fixed backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres tests for PyPy. 2023-12-07 09:43:20 +01:00
Nick Pope 958a590e53 Refs #34986 -- Used non-binary build of psycopg for PyPy. 2023-12-07 09:21:37 +01:00
Sarah Boyce f80669d2f5 Fixed #35020 -- Fixed ModelAdmin.lookup_allowed() for non-autofield primary keys.
Thanks Joshua Goodwin for the report.

Regression in 45ecd9acca.
2023-12-07 06:16:35 +01:00
Mariusz Felisiak 00ef74376e
Replaced deprecated database type synonyms in Oracle backend. 2023-12-06 13:51:54 +01:00
Nick Pope 66d58e77de Refs #34986 -- Added PyPy to tox.ini. 2023-12-06 09:28:14 +01:00
Nick Pope fb9216382a Refs #34986 -- Moved garbage_collect() helper to django.test.utils. 2023-12-06 09:26:11 +01:00
Nick Pope 1c3614e306 Refs #34986 -- Avoided implementation-specific unpickleable types.
The implementation of some core types differ between CPython and PyPy
and this may affect the way that pickling works such that errors are
raised in differing locations in the interpreter or not at all.

Use our own custom non-pickleable type instead to avoid these quirks.
2023-12-06 09:23:35 +01:00
Nick Pope 2c6e4a29b0 Fixed typo in tests/backends/postgresql/test_server_side_cursors.py. 2023-12-06 09:17:49 +01:00
Nick Pope 0ee2b8c326 Changed django.contrib.gis.geoip2 package to a module. 2023-12-05 14:01:59 +01:00
Nick Pope 60c7cb90f8 Inlined django.contrib.gis.geoip2.resources module. 2023-12-05 14:01:59 +01:00
Nick Pope 07f9f9960c Deprecated django.contrib.gis.geoip2.GeoIP2.open(). 2023-12-05 08:21:19 +01:00
Mariusz Felisiak 464af0975c Added stub release notes for 4.2.9. 2023-12-05 06:07:51 +01:00
Mariusz Felisiak 689306c745 Updated expected release date for 5.0.1. 2023-12-05 06:02:36 +01:00
Natalia 14884b6be8 Added stub release notes for 5.0.1. 2023-12-04 10:21:37 -03:00
Natalia 5076bb41d0 Updated translations from Transifex.
Forwardport of 8e1b820fa1 from stable/5.0.x.
2023-12-04 09:57:14 -03:00
Natalia 1994a26438 Finalized release notes for Django 5.0. 2023-12-04 09:25:23 -03:00
yushanfans2233 14b0132e5e Fixed #34830 -- Added request to bad_request/csrf_failure view template contexts. 2023-12-04 10:52:06 +01:00
Mariusz Felisiak 8fcb9f1f10 Added release date for 4.2.8. 2023-12-04 09:24:31 +01:00
Tom Carrick 94d495f960
Removed unused CSS rules for related widget in RTL. 2023-12-03 14:20:57 +01:00
Peter Thomassen 54cb1a7e16 Fixed #35002 -- Made UniqueConstraints with fields respect nulls_distinct.
Regression in 595a2abb58.
2023-12-03 12:30:45 +01:00
Tom Carrick dec8aa68f6
Fixed #35001 -- Fixed position of related widget action icons in admin for some screen sizes. 2023-12-01 10:03:04 -03:00
Nick Pope 0f83133a35
Made GeoIP2.__del__() close all databases. 2023-12-01 13:55:45 +01:00
Adrien 79099a7ba4 Improved wording in auth.models.User field docs.
Co-authored-by: Lily Foote <code@lilyf.org>
2023-12-01 10:44:58 +01:00
Mariusz Felisiak dafbed9af5
Refs #35004 -- Restored the direction of arrows in admin selector boxes for RTL languages on mobile screens.
Regression in 57c1dd466f.
2023-12-01 09:45:57 +01:00
Nick Pope b925fefd7d Deprecated django.contrib.gis.geoip2.GeoIP2.coords().
The `ordering` argument is undocumented and of limited use, so this is
effectively the same as `GeoIP2.lon_lat()`.
2023-12-01 08:38:42 +01:00
Nick Pope 1311f82a6a Simplified coordinate retrieval routines for GeoIP2.
Also removed dead code checking for ``None`` as ``GeoIP2.city()` cannot
return ``None``.
2023-12-01 08:23:52 +01:00