Alexander Lazarević
4787972c94
Refs #28404 -- Made displaying property values in admin respect non-None empty values.
2024-01-11 12:47:06 +01:00
Nick Pope
40b5b1596f
Fixed #35100 -- Reworked GeoIP2 database initialization.
2024-01-11 12:01:35 +01:00
Nick Pope
f50184a84b
Fixed #35092 -- Exposed extra fields for GeoIP2.country() and GeoIP2.city() responses.
2024-01-10 12:09:44 +01:00
Alexander Lazarević
9b02ad91ea
Fixed #28404 -- Made displaying values in admin respect Field's empty_values.
2024-01-10 08:34:25 +01:00
Tim Graham
ecd3071dac
Fixed #35097 -- Tested parse_datetime() with bare date.
...
Regression test for behavior change in
f35ab74752adb37138112657c1bc8b91f50e799b.
2024-01-09 14:08:03 -03:00
Alexander Lazarević
1b0a8991ae
Refs #28404 -- Split test_null_display_for_field() test.
2024-01-09 11:44:16 +01:00
Sarah Boyce
a9094ec1f4
Fixed #35087 -- Reallowed filtering against foreign keys not listed in ModelAdmin.list_filters.
...
Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7.
2024-01-08 09:21:54 +01:00
Nick Pope
cc56c22a24
Fixed #35091 -- Allowed GeoIP2 querying using IPv4Address/IPv6Address.
2024-01-07 08:15:40 +01:00
David Smith
45f59d0eab
Fixed #35086 -- 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
0c5456ef37
Used enterClassContext() where appropriate.
2024-01-04 05:55:29 +01:00
David Wobrock
8fb0be3500
Fixed #33277 -- Disallowed database connections in threads in SimpleTestCase.
2024-01-03 13:02:26 +01:00
Nick Pope
45f778eded
Fixed #35075 -- Added deduplicate_items parameter to BTreeIndex.
2024-01-02 12:55:12 +01:00
Salvo Polizzi
3915d4c70d
Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().
2024-01-02 08:42:33 +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
Mariusz Felisiak
d88ec42bd0
Used addCleanup() in tests where appropriate.
2023-12-31 10:01:31 +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
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
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
Christian Clauss
ebf9320838
Removed unnecessary list() calls on sorted().
2023-12-28 10:58:37 +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 107865780aa44914e21d27fdf4ca269bc61c7f01.
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 59f475470494ce5b8cbff816b1e5dafcbd10a3a3.
2023-12-23 17:35:13 +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
Nicolas Lupien
2bf46c3825
Fixed #34658 -- Added SimpleTestCase.assertNotInHTML().
2023-12-22 08:27:59 +01:00
David Smith
c709a748ce
Fixed #35049 -- Dropped support for GDAL 2.4.
2023-12-20 21:44:11 +01: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 59bea9efd2768102fc9d3aedda469502c218e9b7.
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
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
Mariusz Felisiak
8fa7c2ae88
Improved test coverage for django.contrib.sessions.backends.base.SessionBase.
2023-12-13 12:51:58 +01: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
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 f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
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 f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
2023-12-08 09:46:11 +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 d9de74141e8a920940f1b91ed0a3ccb835b55729.
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
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 45ecd9acca9b36093e274f47b6877a5f79108d9e.
2023-12-07 06:16:35 +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
07f9f9960c
Deprecated django.contrib.gis.geoip2.GeoIP2.open().
2023-12-05 08:21:19 +01:00
yushanfans2233
14b0132e5e
Fixed #34830 -- Added request to bad_request/csrf_failure view template contexts.
2023-12-04 10:52:06 +01:00
Peter Thomassen
54cb1a7e16
Fixed #35002 -- Made UniqueConstraints with fields respect nulls_distinct.
...
Regression in 595a2abb58e04caa4d55fb2589bb80fb2a8fdfa1.
2023-12-03 12:30:45 +01:00
Nick Pope
0f83133a35
Made GeoIP2.__del__() close all databases.
2023-12-01 13:55:45 +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