Commit Graph

32395 Commits

Author SHA1 Message Date
Adrienne Franke 8570e091d0
Fixed typo in docs/topics/auth/default.txt. 2024-01-22 17:43:13 +01:00
Salvo Polizzi 184d82d848
Fixed -- Doc'd django.db.close_old_connections().
This also adds close_db_connections() to the django.db.__all__.
2024-01-22 13:31:50 +01:00
David Smith 1c3a9b9f96 Added more WKT and WKB tests. 2024-01-22 10:40:32 +01:00
Adam Johnson a5622f84ab
Fixed tutorial 'background.gif' reference.
Missed in 76fda7729e.
2024-01-22 05:25:28 +01:00
Emmanuel Katchy 12ffcfc350 Updated "Dive Into Python" links. 2024-01-20 19:43:55 +01:00
Mariusz Felisiak 4879907223
Fixed -- Made Model.full_clean() ignore GeneratedFields.
Thanks Claude Paroz for the report.

Regression in f333e3513e.
2024-01-19 08:55:50 +01:00
Hisham Mahmood 8a1727dc7f
Fixed -- Improved color contrast for add/change icons in admin. 2024-01-19 05:41:53 +01:00
Salvo Polizzi 10c7c7320b Fixed -- Corrected color for links in the admin.
Thanks Collin Anderson for the report.

Regression in 6ad2738a8f.
2024-01-18 12:22:06 +01:00
Mariusz Felisiak 51967b56c4
Corrected forms imports in forms_tests/tests/test_forms.py. 2024-01-18 12:20:19 +01:00
David Smith cfacd69ab8 Refs -- Added is_3d and set_3d() to OGRGeometry. 2024-01-18 10:48:40 +01:00
Viicos 12c71bff83
Fixed typo in docs/ref/migration-operations.txt. 2024-01-18 05:21:15 +01:00
Amir Karimi 27a3eee721 Fixed -- Made makemigrations command display meaningful symbols for each operation. 2024-01-17 14:00:02 +01:00
Alexis Athlani c7e986fc9f Fixed -- Added support for the hectare unit in Area. 2024-01-16 20:31:46 +01:00
David Sanders 6debeac9e7
Improved --list-tags help text for check management command.
Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
2024-01-16 20:30:27 +01:00
Baptiste Mispelon 1592f0ac22
Used more specific link to email backends in EMAIL_BACKEND docs. 2024-01-16 20:09:50 +01:00
Simon Charette 0fcee1676c Fixed -- Fixed compilation of DateField __in/__range rhs on SQLite and MySQL.
Also removed tests that ensured that adapt_(date)timefield backend
operations where able to deal with expressions when it's not the case
for any other adapt methods.
2024-01-16 08:34:14 +01:00
Simon Charette 561f770415 Refs -- Corrected __range lookup test names. 2024-01-16 08:34:06 +01:00
Alexander Lazarević 5a46f3fad7
Fixed -- Removed previous/next month animation in admin calendar widget. 2024-01-16 08:30:01 +01:00
jordanbae 4fec1d2ce3 Fixed -- Clarified when UniqueConstraints with include/nulls_distinct are not created. 2024-01-15 13:42:02 +01:00
Aivars Kalvans f92641a636 Fixed -- Allowed customizing queryset in Model.refresh_from_db()/arefresh_from_db().
The from_queryset parameter can be used to:
- use a custom Manager
- lock the row until the end of transaction
- select additional related objects
2024-01-15 10:55:14 +01:00
Mariusz Felisiak f3d10546a8 Refs -- Optimized replace_expressions()/relabelling aliases by adding early return.
This avoids costly hashing.

Thanks Anthony Shaw for the report.

Co-Authored-By: Simon Charette <charette.s@gmail.com>
2024-01-15 05:56:38 +01:00
Simon Charette d074c7530b Refs -- Optimized Expression.identity used for equality and hashing.
inspect.signature() is quite slow and produces the same object for each
instance of the same class as they share their __init__ method which
makes it a prime candidate for caching.

Thanks Anthony Shaw for the report.
2024-01-15 05:56:33 +01:00
Simon Charette 92d6cff6a2 Fixed -- Disabled server-side bindings for named cursors on psycopg >= 3.
While we provide a `cursor_factory` based on the value of the
`server_side_bindings` option to `psycopg.Connection` it is ignored by
the `cursor` method when `name` is specified for `QuerySet.iterator()`
usage and it causes the usage of `psycopg.ServerCursor` which performs
server-side bindings.

Since the ORM doesn't generates SQL that is suitable for server-side
bindings when dealing with parametrized expressions a specialized cursor
must be used to allow server-side cursors to be used with client-side
bindings.

Thanks Richard Ebeling for the report.

Thanks Florian Apolloner and Daniele Varrazzo for reviews.
2024-01-12 21:40:18 +01:00
nessita 02eaee1209
Added test ensuring that validate_password is used in AdminPasswordChangeForm.
Co-authored-by: Fabian Braun <fsbraun@gmx.de>
2024-01-12 17:27:55 -03:00
Florian Apolloner 6e520d9537 Avoided nested transactions in SkippingClassTestCase. 2024-01-12 09:57:52 +01:00
Mark Walker 4eb4ab4122 Reorganized the Contributing to Django docs.
This work follows a comprehensive review conducted during the DjangoCon US 2023
sprints. Changes include:
 - Updated the title of the main page for better alignment with the content.
 - Removed emojis to enhance accessibility and avoid cultural specificity.
 - Improved the layout and navigation of contributing documentation.
 - Unified sections for communication channels and community links.
 - Grouped resources according to the Diátaxis systematic approach.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Daniele Procida <daniele@vurt.org>
2024-01-11 22:25:27 -03:00
Alexander Lazarević 4787972c94 Refs -- Made displaying property values in admin respect non-None empty values. 2024-01-11 12:47:06 +01:00
Nick Pope 40b5b1596f Fixed -- Reworked GeoIP2 database initialization. 2024-01-11 12:01:35 +01:00
Mariusz Felisiak 8d2c16252e
Fixed -- Fixed key transforms on Oracle 21c+.
Oracle 21c introduced support for primivites in JSON fields that
caused changes in handling them by JSON_QUERY/JSON_VALUE functions.
2024-01-10 21:00:42 +01:00
Nick Pope f50184a84b
Fixed -- Exposed extra fields for GeoIP2.country() and GeoIP2.city() responses. 2024-01-10 12:09:44 +01:00
Alexander Lazarević 9b02ad91ea Fixed -- Made displaying values in admin respect Field's empty_values. 2024-01-10 08:34:25 +01:00
evananyonga ec7651586d Made management command examples more consistent in docs. 2024-01-09 20:12:14 +01:00
Tim Graham ecd3071dac
Fixed -- Tested parse_datetime() with bare date.
Regression test for behavior change in
f35ab74752.
2024-01-09 14:08:03 -03:00
Fabian Braun 6dae40839b
Fixed -- Corrected alignment for error lists in admin "wide" forms.
Regression in be06c39abe (LTR) and
b34a4771a3 (RTL).
2024-01-09 14:18:42 +01:00
Alexander Lazarević 1b0a8991ae Refs -- Split test_null_display_for_field() test. 2024-01-09 11:44:16 +01:00
syed waheed 415982be10 Fixed -- Clarified remove_stale_contenttypes data loss warning. 2024-01-08 20:07:24 +01:00
Sarah Boyce a9094ec1f4 Fixed -- Reallowed filtering against foreign keys not listed in ModelAdmin.list_filters.
Regression in f80669d2f5.
2024-01-08 09:21:54 +01:00
Nick Pope cc56c22a24
Fixed -- Allowed GeoIP2 querying using IPv4Address/IPv6Address. 2024-01-07 08:15:40 +01:00
Nick Pope 53fc6ac649
Fixed -- Added support for Collect on MySQL 8.0.24+. 2024-01-06 15:07:49 +01:00
Mariusz Felisiak 5c043286e2
Simplified dropping spatial indexes on MySQL and Oracle. 2024-01-05 16:50:48 +01:00
David Smith 45f59d0eab Fixed -- Added support for BoundedCircle on Spatialite 5.1+.
Spatialite 5.1 added support for BoundingCircle
(GEOSMinimumBoundingCircle). GEOS 3.7 is required which is lower than
Django's currently supported minmum of 3.8.

https://groups.google.com/g/spatialite-users/c/hAJ2SgitN4M

https://www.gaia-gis.it/gaia-sins/spatialite-sql-5.1.0.html
2024-01-05 11:55:44 +01:00
Mariusz Felisiak 9b056aa5af
Bumped versions in pre-commit and npm configurations. 2024-01-05 08:23:31 +01:00
Claude Paroz 7dd19a367e
Moved isort config from setup.cfg to pyproject.toml. 2024-01-05 08:15:45 +01:00
Claude Paroz edcf8532ff
Removed obsolete rpm-related install code. 2024-01-05 06:03:19 +01:00
Adam Johnson 05f124348e Fixed -- Recommended 'django_' prefix for reusable app modules. 2024-01-04 09:54:37 +01:00
Mariusz Felisiak 0c5456ef37
Used enterClassContext() where appropriate. 2024-01-04 05:55:29 +01:00
Adam Johnson d89a465e62
Refs -- Fixed blacken-docs pre-commit configuration.
Missed in 6015bab80e. The default
blacken-docs hook definition does not apply to .txt files, which the
Django documentation uses. This commit overrides that definition to
point blacken-docs at the appropriate files.
2024-01-04 05:35:46 +01:00
Adam Johnson c65f49d3cb
Refs -- Updated tutorial for admin dark mode toggle. 2024-01-03 22:17:57 +01:00
David Wobrock 8fb0be3500 Fixed -- Disallowed database connections in threads in SimpleTestCase. 2024-01-03 13:02:26 +01:00
Nick Pope 45f778eded Fixed -- Added deduplicate_items parameter to BTreeIndex. 2024-01-02 12:55:12 +01:00