1
0
mirror of https://github.com/django/django.git synced 2025-04-13 03:52:20 +00:00

5396 Commits

Author SHA1 Message Date
Anthony Joseph
c2e1bfbe9b Fixed #35856 -- Added QuerySet.explain() support for MEMORY/SERIALIZE option on PostgreSQL 17+. 2024-11-17 07:58:30 -08:00
Johanan-Ayadata
ff75ae3b62 Added missing lang attributes to html elements in docs. 2024-11-17 07:58:30 -08:00
aruseni
4a90b0b227 Clarified default behavior when fields and fieldsets are not set on ModelAdmin. 2024-11-17 07:58:30 -08:00
antoliny0919
3fbc7ff11b Fixed #35873 -- Corrected Form.as_table() call in form docs. 2024-11-17 07:58:30 -08:00
aruseni
c4832e7193 Corrected note on importing fields in model field reference docs. 2024-11-17 07:58:30 -08:00
Clifford Gama
3cd08b222b Fixed typo in ref/models/fields.txt. 2024-11-17 07:58:30 -08:00
antoliny0919
d8e3c73ec2 Fixed #35871 -- Corrected example on altering the base_fields attribute in forms docs. 2024-11-17 07:58:30 -08:00
Mariusz Felisiak
df6241ff0b Refs #35803 -- Added support for __covers GIS lookup on MySQL. 2024-11-17 07:58:30 -08:00
Mariusz Felisiak
3e4d3e707a Fixed #35803 -- Added support for Collect, GeoHash, and IsValid on MariaDB 11.7+. 2024-11-17 07:58:30 -08:00
Mariusz Felisiak
ecb0415ee9 Refs #35803 -- Added support for __coveredby GIS lookup on MySQL and MariaDB 11.7+. 2024-11-17 07:58:30 -08:00
Carlton Gibson
446bb2dac8 Refs #26029 -- Extended docs for the StorageHandler default instance.
Third-party packages that provide storages need to rely on the
StorageHandler API in order to allow users to use the `storages` module
instance to override defaults. Minimally documenting these methods
allows package authors to rely on them.

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-11-17 07:58:30 -08:00
koresi
cb7f1180a8 Fixed #22828 -- Warned that ModelAdmin get hooks return the property itself rather a copy. 2024-11-17 07:58:30 -08:00
David D Lowe
0208305b00 Doc'd that unusable passwords are defined by metadata in the password field. 2024-11-17 07:58:30 -08:00
Clifford Gama
5a65adb2f8 Fixed #28999 -- Documented how to reverse a class-based view by instance.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-11-17 07:58:30 -08:00
Yash
33887d9f84 Fixed #35731 -- Extended db_default docs.
This added a missing db_default reference in docs/topics/db/models.txt,
and added a reference to the DatabaseDefault object.
2024-11-17 07:58:30 -08:00
David Smith
523c1efe14 Refs #34406 -- Added support for GDAL curved geometries.
Co-authored-by: Fabien Le Frapper <contact@fabienlefrapper.me>
2024-11-17 07:58:30 -08:00
ssanger
608422addc Added missing alt attribute to <img> tag in docs. 2024-11-17 07:58:30 -08:00
Clifford Gama
ba50497dab Fixed #26322 -- Consolidated lazy relationships details in docs/ref/models/fields.txt.
Reorganized docs to list and explain the types of lazy relationships
that can be defined in related fields.

Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-11-17 07:58:30 -08:00
SaJH
4c2b48e9a1 Fixed #35727 -- Added HttpResponse.text property.
Signed-off-by: SaJH <wogur981208@gmail.com>
2024-11-17 07:58:30 -08:00
leondaz
c88cad9ac6 Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands. 2024-11-17 07:58:30 -08:00
gabn88
8dc9020a41 Fixed #35103 -- Used provided error code and message when fields is set without a condition on UniqueConstraint. 2024-11-17 07:58:30 -08:00
Jon Janzen
2ae9341976 Fixed #35303 -- Implemented async auth backends and utils. 2024-11-17 07:58:29 -08:00
Ryan Cheley
a7435a5281
Merge branch 'django:main' into ticket-27106 2024-10-05 07:54:48 -07:00
nessita
1feedc8ef8
Reindented attributes and methods for classes in docs/ref/middleware.txt. 2024-10-02 14:21:10 -03:00
Aditya Chaudhary
efc3b0c627
Fixed #35670 -- Clarified the return value for LoginRequiredMiddleware's methods. 2024-10-02 13:15:21 -03:00
Marc Gibbons
6765b6adf9
Fixed #35797 -- Removed debug context processor from default project template. 2024-09-30 16:52:28 -03:00
Chiara Mezzavilla
73e8e81141
Relocated path() explanation to docs/ref/urls.txt to simplify tutorial 1.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-09-30 13:31:26 -03:00
Ryan Cheley
87d0d28d17 Added documentation for single filter for draft PR 2024-09-29 16:28:39 -07:00
David Smith
1857b6663b Fixed #35776 -- Dropped support for GDAL 3.0. 2024-09-19 17:26:30 +02:00
Clifford Gama
e1d226bc1c Fixed #35748 -- Documented that fields are excluded from a ModelForm when formfield() returns None.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-09-19 15:19:08 +02:00
saJaeHyukc
fd92f24789 Fixed #34887 -- Added support for unlimited models.CharField on SQLite.
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
2024-09-16 13:31:06 +02:00
Csirmaz Bendegúz
5865ff5adc
Refs #373 -- Added Model._is_pk_set() abstraction to check if a Model's PK is set. 2024-09-09 17:46:50 -03:00
Jake Howard
e161bd4657 Fixed #35631 -- Added HttpRequest.get_preferred_type(). 2024-09-09 12:02:18 +02:00
Jon Ribbens
826ef00668
Fixed #35681 -- Corrected geoip2 docs when describing GeoIP2Exception. 2024-09-06 23:21:15 -03:00
Natalia
8c35a0a903 Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails.
On successful submission of a password reset request, an email is sent
to the accounts known to the system. If sending this email fails (due to
email backend misconfiguration, service provider outage, network issues,
etc.), an attacker might exploit this by detecting which password reset
requests succeed and which ones generate a 500 error response.

Thanks to Thibaut Spriet for the report, and to Mariusz Felisiak, Adam
Johnson, and Sarah Boyce for the reviews.
2024-09-03 09:22:32 -03:00
Sarah Boyce
320dd27412 Fixed CVE-2024-45230 -- Mitigated potential DoS in urlize and urlizetrunc template filters.
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.
2024-09-03 09:22:32 -03:00
github-user-en
ad7f8129f3 Added EMAIL_USE_SSL to the 'Core Settings Topical Index' docs. 2024-09-03 10:16:20 +02:00
Hisham Mahmood
2b2a2c0e26 Fixed #35702 -- Removed connection pooling note for mysql drivers. 2024-08-30 09:08:32 +02:00
Adam Johnson
26a67943ac
Removed outdated note about lack of subquery support in MySQL. 2024-08-28 15:55:30 -03:00
Mariusz Felisiak
2b9f0b79bc Fixed typo in docs/ref/models/expressions.txt. 2024-08-28 09:08:16 -03:00
Mariusz Felisiak
fed11ba461 Fixed typo in docs/ref/models/expressions.txt. 2024-08-28 09:08:16 -03:00
nabil-rady
231c0d8593 Fixed #35668 -- Added mapping support to format_html_join. 2024-08-20 08:20:34 +02:00
Clifford Gama
ca1318988c Fixed #35671 -- Clarified string-based fields behavior when null=False. 2024-08-20 08:09:39 +02:00
David Smith
5ae9922666 Fixed typo of --no-startup in django-admin docs. 2024-08-13 11:18:42 +02:00
Devin Cox
e03083917d Fixed #35586 -- Added support for set-returning database functions.
Aggregation optimization didn't account for not referenced set-returning annotations on Postgres.

Co-authored-by: Simon Charette <charette.s@gmail.com>
2024-08-12 15:35:19 +02:00
Mariusz Felisiak
f883bef054 Refs #35591 -- Removed hardcoded "stable" version in runserver warning. 2024-08-12 10:57:02 +02:00
Andrew Miller
69aa13ffb9 Fixed #35591 -- Added unsuitable for production console warning to runserver. 2024-08-09 10:34:10 +02:00
Jure Cuhalev
f8ef4579ea Doc'd that SessionMiddleware is required for the admin site.
The system check "admin.E410" was already checking for this, but the
requirement was not listed in docs/ref/contrib/admin/index.txt.
2024-08-08 08:48:41 -03:00
Andrew Miller
cec62fb99e Refs #35591 -- Emphasized that runserver is not suitable for production. 2024-08-08 10:08:53 +02: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