summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2024-01-15Fixed #28344 -- Allowed customizing queryset in ↵Aivars Kalvans
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-15Refs #35102 -- Optimized replace_expressions()/relabelling aliases by adding ↵Mariusz Felisiak
early return. This avoids costly hashing. Thanks Anthony Shaw for the report. Co-Authored-By: Simon Charette <charette.s@gmail.com>
2024-01-15Refs #35102 -- Optimized Expression.identity used for equality and hashing.Simon Charette
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-12Fixed #35028 -- Disabled server-side bindings for named cursors on psycopg >= 3.Simon Charette
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-11Refs #28404 -- Made displaying property values in admin respect non-None ↵Alexander Lazarević
empty values.
2024-01-11Fixed #35100 -- Reworked GeoIP2 database initialization.Nick Pope
2024-01-10Fixed #34769 -- Fixed key transforms on Oracle 21c+.Mariusz Felisiak
Oracle 21c introduced support for primivites in JSON fields that caused changes in handling them by JSON_QUERY/JSON_VALUE functions.
2024-01-10Fixed #35092 -- Exposed extra fields for GeoIP2.country() and GeoIP2.city() ↵Nick Pope
responses.
2024-01-10Fixed #28404 -- Made displaying values in admin respect Field's empty_values.Alexander Lazarević
2024-01-09Fixed #35096 -- Corrected alignment for error lists in admin "wide" forms.Fabian Braun
Regression in be06c39abe80ca650e37810d16d15ff60e8c9727 (LTR) and b34a4771a3d4cd7829a1f38a0f6a7a0da519a724 (RTL).
2024-01-08Fixed #33481 -- Clarified remove_stale_contenttypes data loss warning.syed waheed
2024-01-08Fixed #35087 -- Reallowed filtering against foreign keys not listed in ↵Sarah Boyce
ModelAdmin.list_filters. Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7.
2024-01-07Fixed #35091 -- Allowed GeoIP2 querying using IPv4Address/IPv6Address.Nick Pope
2024-01-06Fixed #35088 -- Added support for Collect on MySQL 8.0.24+.Nick Pope
2024-01-05Simplified dropping spatial indexes on MySQL and Oracle.Mariusz Felisiak
2024-01-05Fixed #35086 -- Added support for BoundedCircle on Spatialite 5.1+.David Smith
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-04Used enterClassContext() where appropriate.Mariusz Felisiak
2024-01-03Fixed #33277 -- Disallowed database connections in threads in SimpleTestCase.David Wobrock
2024-01-02Fixed #35075 -- Added deduplicate_items parameter to BTreeIndex.Nick Pope
2024-01-02Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().Salvo Polizzi
2024-01-02Improved variable names in QuerySet.delete().Michael
2024-01-01Updated DatabaseFeatures.bare_select_suffix on Oracle 23c.Nick Pope
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-4EB70EB9-4EE3-4FE2-99C4-86F7AAC60F12
2024-01-01Supported native aggregation over INTERVALs on Oracle 23c.Nick Pope
https://docs.oracle.com/en/database/oracle/oracle-database/23/nfcoa/application-development.html#GUID-CE5F8EED-934D-458D-B81C-6C8D617F31A2
2024-01-01Added note about SELECT index in GROUP BY on Oracle 23c.Nick Pope
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
2023-12-31Used JSON_OBJECT database function on PostgreSQL 16+.Nick Pope
2023-12-31Fixed #35051 -- Prevented runserver from removing non-zero Content-Length ↵Paul Bailey
for HEAD requests.
2023-12-30Fixed #29049 -- Added slicing notation to F expressions.Nick Pope
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-30Fixed #34670 -- Improved loading of theme in admin.Nicolas Lupien
Thanks Sarah Abderemane for the review.
2023-12-29Fixed #35064 -- Fixed Window(order_by) crash with DecimalFields on SQLite.Simon Charette
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-29Refs #35064 -- Made OrderableAggMixin avoid creating empty OrderByList.Simon Charette
This paves the way for making OrderByList a simple shim over ExpressionList which requires at least a single item to be provided.
2023-12-28Fixed #35065 -- Corrected border color for autocomplete fields with errors ↵Rigoberto Villalta
in admin.
2023-12-27Fixed #35056 -- Fixed system check crash on reverse m2m relations with ↵Mariusz Felisiak
related_name in ModelAdmin.filter_horizontal/vertical. Thanks Thomas Feldmann for the report. Regression in 107865780aa44914e21d27fdf4ca269bc61c7f01.
2023-12-27Refs #35058 -- Made OGRGeomType aware of additional WKB geometry types.David Smith
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-26Refs #35058 -- Added __repr__() to OGRGeomType.David Smith
2023-12-23Fixed #35050 -- Fixed prefixing field names in FilteredRelation().David Wobrock
Thanks Mark Zorn for the report. Regression in 59f475470494ce5b8cbff816b1e5dafcbd10a3a3.
2023-12-23Refs #35058 -- Added support for WKB > 2GB with GDAL 3.3+.David Smith
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-22Fixed #35022 -- Fixed RenameIndex() crash on unnamed indexes if exists ↵David Wobrock
unique constraint on the same fields.
2023-12-22Fixed #35054 -- Fixed crash on Oracle when fetching JSONFields with oracledb ↵Mariusz Felisiak
2.0.0.
2023-12-22Fixed #34658 -- Added SimpleTestCase.assertNotInHTML().Nicolas Lupien
2023-12-22Fixed #35008 -- Added CSS rule for <input> HTML tags with no type.Rapha S
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-21Fixed #35005 -- Confirmed support for GDAL 3.8.David Smith
2023-12-20Fixed #35049 -- Dropped support for GDAL 2.4.David Smith
2023-12-18Fixed #34411 -- Updated GDAL API to handle vector DataSource's.Claude Paroz
Co-authored-by: David Smith <smithdc@gmail.com>
2023-12-16Fixed #35042 -- Fixed a count() crash on combined queries.Simon Charette
Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7. Thanks Marcin for the report.
2023-12-15Fixed #34909 -- Associated links in admin navigation sidebar with row ↵Eliana Rosselli
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-15Refs #34909 -- Made cosmetic edits to admin navigation template.Eliana Rosselli
2023-12-14Fixed #35000 -- Skipped declaring empty string defaults on BLOB/TEXT field ↵Tobias Krönke
on MySQL. Empty string defaults are redundant on MySQL and prevent use of ALGORITHM=INSTANT.
2023-12-14Used model's Options.model_name instead of object_name.lower().Mariusz Felisiak
Follow up to 20d487c27b40bb70496ddc7419011ca78b7d4940.
2023-12-13Fixed #35012 -- Restored wrapping admin fieldsets with multiple fields per line.Tom Carrick
Thanks James Gillard for the report. Regression in 729266c6f29c7a0677b24926a86a767ef3078b26.
2023-12-12Fixed #34305 -- Changed GeoIP2 tests to use MaxMind test databases.Nick Pope
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>