Adam Zapletal
e9ed5da3cb
Removed trailing whitespace in docs.
2024-11-27 13:13:28 -03:00
Mariusz Felisiak
2e3bc59fd3
Refs #34900 -- Doc'd Python 3.13 compatibility.
2024-10-09 09:27:33 +02:00
Natalia
0ebed5fa95
Fixed #35678 -- Removed "usable_password" field from BaseUserCreationForm.
...
Refs #34429 : Following the implementation allowing the setting of
unusable passwords via the admin site, the `BaseUserCreationForm` and
`UserCreationForm` were extended to include a new field for choosing
whether password-based authentication for the new user should be enabled
or disabled at creation time.
Given that these forms are designed to be extended when implementing
custom user models, this branch ensures that this new field is moved to
a new, admin-dedicated, user creation form `AdminUserCreationForm`.
Regression in e626716c28
.
Thanks Simon Willison for the report, Fabian Braun and Sarah Boyce for
the review.
2024-08-19 12:39:57 -03:00
Adam Johnson
49815f70e4
Refs #31405 -- Improved LoginRequiredMiddleware documentation.
...
co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-08-08 10:05:31 +02:00
Natalia
8ad6dc636b
Finalized release notes for Django 5.1.
2024-08-07 10:04:18 -03:00
Mariusz Felisiak
df35cf578f
Updated asgiref dependency for 5.1 release series.
2024-07-24 08:21:07 +02:00
Sarah Boyce
27043bde5b
Refs #10941 -- Renamed query_string template tag to querystring.
2024-07-15 13:28:55 -03:00
Natalia
59b649c7df
Made cosmetic edits to 5.1 release notes.
2024-05-22 11:29:45 -03:00
Natalia
8e68c50341
Removed empty sections from 5.1 release notes.
2024-05-22 11:29:45 -03:00
Hisham Mahmood
c7fc9f20b4
Fixed #31405 -- Added LoginRequiredMiddleware.
...
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Mehmet İnce <mehmet@mehmetince.net>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22 08:51:17 +02:00
Marijke Luttekes
7857507c7f
Refs #35189 -- Removed no longer necessary JavaScript file collapse.js.
2024-05-22 00:13:55 -03:00
Marijke Luttekes
e4a693f50a
Fixed #35189 -- Improved admin collapsible fieldsets by using <details> elements.
...
This work improves the accessibility of the add and change pages in the
admin site by adding <details> and <summary> elements to the collapsible
fieldsets. This has the nice side effect of no longer requiring custom
JavaScript helpers to implement the fieldsets' show/hide capabilities.
Thanks to James Scholes for the accessibility advice, and to Sarah Boyce
and Tom Carrick for reviews.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-05-22 00:13:55 -03:00
John Parton
9c5fe93349
Fixed #35139 -- Prevented file read after ImageField is saved to storage.
2024-05-22 00:25:56 +02:00
Berker Peksag
4971a9afe5
Fixed #18119 -- Added a DomainNameValidator validator.
...
Thanks Claude Paroz for the review.
Co-authored-by: Nina Menezes <77671865+nmenezes0@users.noreply.github.com>
2024-05-21 23:11:12 +02:00
Adam Johnson
b9838c65ec
Fixed #35405 -- Converted get_cache_name into a cached property in FieldCacheMixin.
...
FieldCacheMixin is used by related fields to track their cached values.
This work migrates get_cache_name() to be a cached property to optimize
performance by reducing unnecessary function calls when working with
related fields, given that its value remains constant.
Co-authored-by: Simon Charette <charette.s@gmail.com>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-05-21 16:19:29 -03:00
Mariusz Felisiak
480ccf9055
Refs #35326 -- Made cosmetic edits to 5.1 release notes.
2024-05-21 11:23:44 +02:00
Ben Cail
0b33a3abc2
Fixed #35326 -- Added allow_overwrite parameter to FileSystemStorage.
2024-05-21 07:28:12 +02:00
SaJH
8f205acea9
Fixed #35428 -- Increased parallelism of the ScryptPasswordHasher.
2024-05-17 17:13:58 +02:00
Jonny Park
c0b0ce85ed
Fixed #35384 -- Raised FieldError when saving a file without a name to FileField.
2024-05-15 12:02:45 +02:00
Mariusz Felisiak
f030236a86
Fixed #35275 -- Fixed Meta.constraints validation crash on UniqueConstraint with OpClass().
...
This also introduces Expression.constraint_validation_compatible that
allows specifying that expression should be ignored during a constraint
validation.
2024-05-14 10:34:30 +02:00
Mariusz Felisiak
9d5c02446e
Refs #29280 -- Moved release note about transaction_mode to "Database backends" section.
2024-05-02 09:19:34 +02:00
Mariusz Felisiak
85c154da2f
Fixed #35412 -- Dropped support for SQLite < 3.31.
2024-04-29 11:07:54 +02:00
Fabian Braun
944745afe2
Fixed #34977 -- Improved accessibility in the UserChangeForm by replacing the reset password link with a button.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-03-27 16:40:41 -03:00
Giannis Terzopoulos
d658a3162f
Fixed #35233 -- Moved template engine system checks to backend methods.
...
Thanks Adam Johnson for reviews.
2024-03-27 08:14:54 +01:00
Claude Paroz
10b31eea33
Refs #31014 -- Added srid argument to FromWKB/FromWKT() GIS functions.
2024-03-18 09:45:33 +01:00
Jon Janzen
f5c340684b
Fixed #34901 -- Added async-compatible interface to session engines.
...
Thanks Andrew-Chen-Wang for the initial implementation which was posted
to the Django forum thread about asyncifying contrib modules.
2024-03-13 17:55:15 +01:00
Dingning
549320946d
Fixed #35030 -- Made django.contrib.auth decorators to work with async functions.
2024-03-07 09:59:33 +01:00
Adam Johnson
eff21d8e7a
Fixed #35252 -- Optimized _route_to_regex().
...
co-authored-by: Nick Pope <nick@nickpope.me.uk>
2024-03-05 13:09:10 +01:00
Sarah Boyce
fad334e1a9
Refs #33497 -- Added connection pool support for PostgreSQL.
...
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
Co-authored-by: Ran Benita <ran@unusedvar.com>
2024-03-01 09:01:18 +01:00
Simon Charette
daf7d482db
Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.
...
Once the deprecation period ends CheckConstraint.check() can become the
documented method that performs system checks for BaseConstraint
subclasses.
2024-03-01 07:15:32 +01:00
Salvo Polizzi
6e1ece7ed5
Fixed #35090 -- Deprecated registering URL converters with the same name.
2024-02-23 15:54:49 +01:00
Sulabh Katila
eceb5e2eea
Fixed #34806 -- Made cached_db session backend resilient to cache write errors.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-21 21:51:58 -03:00
Fabian Braun
e626716c28
Fixed #34429 -- Allowed setting unusable passwords for users in the auth forms.
...
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-20 12:13:32 -03:00
Aaron Linville
7a05b8a2fa
Fixed #24018 -- Allowed setting pragma options on SQLite.
2024-02-16 12:59:19 +01:00
David Smith
222bf2932b
Refs #35058 -- Added support for measured geometries to GDAL GeometryCollection and subclasses.
2024-02-12 15:21:11 +01:00
David Smith
6ee37ada32
Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator.
2024-02-07 09:46:25 +01:00
Tom Carrick
4ade8386eb
Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display.
...
Co-authored-by: Alex Garcia <me@alexoteiza.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Nina Menezes <https://github.com/nmenezes0 >
2024-02-05 21:42:04 -03:00
Tim Graham
d70b79c6b9
Replaced "Django test runner" with DiscoverRunner in release notes.
...
Removed mention of options supported only by runtests.py.
2024-02-05 09:18:53 -03:00
David Smith
d3922e9e5a
Refs #35058 -- Added support for measured geometries to GDAL Polygon.
2024-01-31 13:11:16 +01:00
Marijke Luttekes
b9e2a3fc63
Fixed #35143 -- Improved accessibility of 404/500 debug pages.
...
This:
- changes the header, main, and footer content areas to be rendered
in a <header>, <main>, and <footer> tags,
- adds scope attributes to <th>,
- uses <code> for a patterns list,
- uses <small> instead of <span>.
2024-01-31 12:26:00 +01:00
Anže Pečar
a0204ac183
Fixed #29280 -- Made the transactions behavior configurable on SQLite.
2024-01-30 11:42:34 +01:00
David Smith
1df8983aa3
Refs #35058 -- Added support for measured geometries to GDAL LineString.
2024-01-29 08:44:42 +01:00
David Smith
2005530920
Refs #35058 -- Made centroid available on all geometry types.
...
Centroid is available on all geometry types since GDAL 1.8.0.
Previously it was restricted to Polygon.
https://gdal.org/doxygen/classOGRGeometry.html#a91787f669b2a148169667e270e7e40df
2024-01-28 14:40:19 +01:00
David Smith
3f6d939c62
Refs #35058 -- Added support for measured geometries to GDAL Point.
...
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2024-01-25 08:59:16 +01:00
Marijke Luttekes
e412d85b46
Fixed #35115 -- Made admin's footer render in <footer> tag.
2024-01-24 14:11:54 +01:00
David Smith
f4c5973464
Refs #35058 -- Deprecated OGRGeometry.coord_dim setter.
...
Reflecting a change in the underlying GDAL library (since GDAL 2.1)
using coord_dim to set a geometries dimensions is deprecated in favor
of set_3d().
2024-01-23 05:37:59 +01:00
David Smith
cfacd69ab8
Refs #35058 -- Added is_3d and set_3d() to OGRGeometry.
2024-01-18 10:48:40 +01:00
Amir Karimi
27a3eee721
Fixed #31700 -- Made makemigrations command display meaningful symbols for each operation.
2024-01-17 14:00:02 +01:00
Alexis Athlani
c7e986fc9f
Fixed #35117 -- Added support for the hectare unit in Area.
2024-01-16 20:31:46 +01:00
Aivars Kalvans
f92641a636
Fixed #28344 -- 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