1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
Commit Graph

666 Commits

Author SHA1 Message Date
Anders Hovmöller
871e1ee5ff
Removed question marks from headings in docs/topics/db/fixtures.txt. 2024-12-02 21:54:48 -03:00
Alexander Lazarević
8590d05d44 Fixed #35887 -- Added imports and admin.site.register to non-partial admin inline doc examples. 2024-11-14 12:09:50 +01:00
Yash
35ab2e0182 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-10-23 11:48:30 +02:00
Natalia
fc1119e8be Refs #35502 -- Clarified models.py file path in docs/topics/db/queries.txt. 2024-10-09 09:12:58 -03:00
Clifford Gama
38c2065154 Refs #35060 -- Fixed the update to update_fields in overridden save() method docs.
Regression in 3915d4c70d.
2024-09-11 13:23:36 +02:00
Mohammad Salehi
ca47884410 Fixed #35623 -- Documented that a field cannot be named 'check'. 2024-08-12 19:58:37 +02:00
Mariusz Felisiak
304d256674
Used :pypi: role in docs where appropriate. 2024-08-05 10:35:50 -03:00
Natalia
05cce083ad Removed versionadded/changed annotations for 5.0.
This also removes remaining versionadded/changed annotations for older
versions.
2024-05-22 15:44:07 -03:00
Ebram Shehata
2152246c0a
Fixed typo in docs/topics/db/managers.txt. 2024-02-01 09:25:09 +01:00
Ben Cail
b3dc80682e Fixed #35156 -- Removed outdated note about not supporting foreign keys by SQLite. 2024-01-31 17:48:42 +01:00
Mariusz Felisiak
305757aec1
Applied Black's 2024 stable style.
https://github.com/psf/black/releases/tag/24.1.0
2024-01-26 12:45:07 +01:00
Salvo Polizzi
3915d4c70d Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave(). 2024-01-02 08:42:33 +01:00
Zowie Beha
8fcd7b01ee Fixed #35072 -- Corrected Field.choices description in models topic. 2024-01-01 18:53:01 +01:00
Natalia
9b18af4f6f Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt. 2023-10-30 10:35:44 -03:00
Natalia
b412e5645a Refs #15578 -- Made cosmetic edits to fixtures docs. 2023-10-30 10:29:37 -03:00
lufafajoshua
aa80b357fb Fixed #30601 -- Doc'd the need to manually revert all app state on transaction rollbacks. 2023-10-27 17:35:47 -03:00
Leo Suarez
334dc073b1 Fixed #15578 -- Stated the processing order of fixtures in the fixtures docs.
Also, added details about loading multiple fixtures and unified line wrapping
at 79 cols.

Co-Authored-By: Aniketh Babu <anikethbabu@gmail.com>
Co-Authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-Authored-By: Natalia Bidart <124304+nessita@users.noreply.github.com>
2023-10-26 17:40:26 -03:00
Mariusz Felisiak
718b32c691
Added missing pycon directives in various docs. 2023-10-25 12:27:27 +02:00
lufafajoshua
8adc7c86ab Fixed #34808 -- Doc'd aggregate function's default argument. 2023-10-11 15:17:36 -03:00
Mariusz Felisiak
5e4c1793b7 Refs #33308 -- Removed support for passing encoded JSON string literals to JSONField & co.
Per deprecation timeline.
2023-09-18 22:12:40 +02:00
Mariusz Felisiak
295467c04a Removed versionadded/changed annotations for 4.2.
This also removes remaining versionadded/changed annotations for older
versions.
2023-09-18 22:12:40 +02:00
Nick Pope
500e01073a
Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices. 2023-08-30 22:57:40 -03:00
Mariusz Felisiak
02376f1f53
Added missing backticks in docs. 2023-07-21 12:54:38 +02:00
Ashwin Dharne
5762b839ff
Fixed typo in docs/topics/db/fixtures.txt. 2023-06-16 19:34:06 +02:00
Akash Kumar Sen
5f2308710b Fixed #30355 -- Doc'd interaction between custom managers and prefetch_related(). 2023-06-07 11:48:01 +02:00
Mariusz Felisiak
498195bda4
Improved examples in docs about raw SQL queries.
Regression in 14459f80ee.
2023-04-20 12:24:33 +02:00
Yahya Ali
263db8af46
Fixed #34463 -- Corrected code-block directives in docs.
Thanks ExTexan for the report.
2023-04-06 13:08:12 +02:00
Jesper Olsson
216eb63883
Fixed #34409 -- Doc'd limitation of dictfetchall() and namedtuplefetchall() examples.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-03-22 19:20:58 +01:00
T. Franzel
a2eaea8f22 Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields. 2023-03-21 19:44:41 +01:00
django-bot
14459f80ee Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00
Joseph Victor Zammit
ba755ca131 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 2023-02-28 12:21:37 +01:00
Carlton Gibson
534ac48297 Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for
reviews.
2023-02-10 19:19:13 +01:00
Marcelo Galigniana
7c6195ef81
Fixed #34310 -- Added deletion example to one-to-one topic. 2023-02-07 08:04:23 +01:00
Mariusz Felisiak
490cccbe7e Removed versionadded/changed annotations for 4.1. 2023-01-17 11:49:15 +01:00
Daniele Varrazzo
09ffc5c121 Fixed #33308 -- Added support for psycopg version 3.
Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews.

Co-authored-by: Florian Apolloner <florian@apolloner.eu>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-12-15 06:17:57 +01:00
Simon Charette
0ff46591ac Refs #33308 -- Deprecated support for passing encoded JSON string literals to JSONField & co.
JSON should be provided as literal Python objects an not in their
encoded string literal forms.
2022-12-01 19:14:00 +01:00
sarahboyce
0678d65722 Refs #34099 -- Doc'd that custom Model.save() should update update_fields kwarg. 2022-11-14 13:43:07 +01:00
Trey Hunner
fad070b07b
Improved readability of string interpolation in frequently used examples in docs. 2022-11-10 13:18:38 +01:00
Adam Johnson
444b6da7cc Refs #33939 -- Improved transaction.on_commit() docs. 2022-11-04 12:20:25 +01:00
Filip Lajszczak
6103059592 Fixed #34054 -- Created a new fixtures topic.
Moved material from django-admin document into a new document, and
added new material.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-11-02 08:08:02 +01:00
Allen Jonathan David
10178197d5 Fixed #33966 -- Added support for using KeyTextTransform from lookup. 2022-09-16 05:36:57 +02:00
Pamela Fox
8e93fc561e Described Article-Reporter relationship in many-to-one topic. 2022-09-15 10:15:50 +02:00
Dhanush
6df9398cce
Corrected example of redundant all() in docs. 2022-09-09 13:34:14 +02:00
SirAbhi13
4a1150b41d Fixed #33616 -- Allowed registering callbacks that can fail in transaction.on_commit().
Thanks David Wobrock and Mariusz Felisiak for reviews.
2022-09-06 12:21:36 +02:00
Alex Morega
de6c9c7054 Refs #30947 -- Changed tuples to lists where appropriate. 2022-08-30 09:57:17 +02:00
Iván Camilo Triviño López
411a6ec93a
Fixed #33958 -- Added imports to examples in "Expressions can reference transforms" section. 2022-08-30 06:03:53 +02:00
Mariusz Felisiak
081871bc20
Refs #30511 -- Updated docs about auto-incrementing primary keys on PostgreSQL.
Follow up to 2eea361eff.
2022-08-26 21:42:44 +02:00
Alex Morega
7e6b537f5b
Fixed #33939 -- Used functools.partial() in transaction.on_commit() examples. 2022-08-23 11:55:30 +02:00
Mariusz Felisiak
e20e5d1557
Fixed #33820 -- Doc'd "true"/"false"/"null" caveat for JSONField key transforms on SQLite.
Thanks Johnny Metz for the report.

Regression in 71ec102b01.
2022-07-26 20:21:27 +02:00
Mariusz Felisiak
ac90529cc5 Fixed docs build with sphinxcontrib-spelling 7.5.0+.
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set
of nodes for which the text is checked.
2022-05-31 11:17:01 +02:00