summaryrefslogtreecommitdiff
path: root/docs/ref/models/fields.txt
AgeCommit message (Collapse)Author
2025-03-21[5.2.x] Refs #36095 -- Doc'd that ManyToManyField.through supports lazy ↵Clifford Gama
relationships. Backport of eb4ea9c3efca479b169bed88a5521c4cf47ed2a2 from main.
2025-03-13[5.2.x] Fixed incorrect formatting for inline pluralized code references in ↵Clifford Gama
docs. Backport of efe3ca09e029c63e25f6e19843cb0c68cc7fa816 from main.
2025-03-04[5.2.x] Fixed #36128 -- Clarified auto-generated unique constraint on m2m ↵Clifford Gama
through models. Backport of ae2736ca3bf4c6a27e23ee95530ad965b550d4cc from main.
2025-02-20[5.2.x] Clarified admonition in GeneratedField docs.Adam Zapletal
Backport of 43766c70bd2939771b7f37104866316faa34606b from main.
2025-01-24[5.2.x] Fixed ambiguous pronoun reference in docs/ref/models/fields.txt.Clifford Gama
Backport of 9cc3970eaaf603832c075618e61aea9ea430f719 from main.
2025-01-15Refs #36070 -- Referred to pk as an attribute when a composite primary key ↵Jacob Walls
is defined. This is to avoid confusion that a field is often associated with having a single associated database column.
2025-01-14Fixed #36075 -- Documented how to introspect composite primary keys.Simon Charette
Document _meta.pk_fields and interactions between Field.primary_key and CompositePrimaryKey. Thanks Mariusz for the review.
2024-11-29Fixed #373 -- Added CompositePrimaryKey.Bendeguz Csirmaz
Thanks Lily Foote and Simon Charette for reviews and mentoring this Google Summer of Code 2024 project. Co-authored-by: Simon Charette <charette.s@gmail.com> Co-authored-by: Lily Foote <code@lilyf.org>
2024-10-29Corrected note on importing fields in model field reference docs.aruseni
2024-10-29Fixed typo in ref/models/fields.txt.Clifford Gama
2024-10-23Fixed #35731 -- Extended db_default docs.Yash
This added a missing db_default reference in docs/topics/db/models.txt, and added a reference to the DatabaseDefault object.
2024-10-17Fixed #26322 -- Consolidated lazy relationships details in ↵Clifford Gama
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-09-19Fixed #35748 -- Documented that fields are excluded from a ModelForm when ↵Clifford Gama
formfield() returns None. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2024-09-16Fixed #34887 -- Added support for unlimited models.CharField on SQLite.saJaeHyukc
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
2024-08-20Fixed #35671 -- Clarified string-based fields behavior when null=False.Clifford Gama
2024-08-05Used :pypi: role in docs where appropriate.Mariusz Felisiak
2024-05-23Fixed #24076 -- Added warnings on usage of dates with DateTimeField and ↵Adam Zapletal
datetimes with DateField.
2024-05-22Removed versionadded/changed annotations for 5.0.Natalia
This also removes remaining versionadded/changed annotations for older versions.
2024-05-02Clarified when ImageField attributes are set.John Parton
2024-02-17Fixed #28011 -- Corrected Field.hidden docs.Adam Johnson
2023-11-14Fixed #34944 -- Made GeneratedField.output_field required.Mariusz Felisiak
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
2023-11-09Fixed typos in docs/ref/models/fields.txt.Jacob Walls
2023-09-18Removed versionadded/changed annotations for 4.2.Mariusz Felisiak
This also removes remaining versionadded/changed annotations for older versions.
2023-09-14Fixed #24561 -- Added support for callables on model fields' choices.Natalia
2023-09-07Fixed #31300 -- Added GeneratedField model field.Jeremy Nauta
Thanks Adam Johnson and Paolo Melchiorre for reviews. Co-Authored-By: Lily Foote <code@lilyf.org> Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2023-08-30 Fixed #31262 -- Added support for mappings on model fields and ↵Nick Pope
ChoiceField's choices.
2023-08-25Refs #33507 -- Doc'd using UUID data type on MariaDB 10.7+ in UUIDField docs.Mariusz Felisiak
Follow up to 7cd187a5ba58d7769039f487faeb9a5a2ff05540.
2023-06-23Improved style of n-tuple wording in docs and comments.Nick Pope
2023-05-17Updated broken links in docs.Mariusz Felisiak
2023-05-12Fixed #470 -- Added support for database defaults on fields.Ian Foote
Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews.
2023-04-19Fixed #34435 -- Doc'd that JSONField.default must be a callable.Sage Abdullah
2023-03-21Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵T. Franzel
form fields.
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-24Doc'd that Meta.indexes is preferred to Field.db_index.Adam Johnson
2023-02-10Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
2023-01-20Fixed #34242 -- Doc'd that primary key is set to None when deleting objects.noFFENSE
2022-12-28Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-10-01Clarified how to reference RelatedObjectDoesNotExist exceptions.David Sanders
2022-09-04Corrected heading level of "Registering and fetching lookups" section in docs.Mariusz Felisiak
2022-09-02Fixed #29799 -- Allowed registering lookups per field instances.Allen Jonathan David
Thanks Simon Charette and Mariusz Felisiak for reviews and mentoring this Google Summer of Code 2022 project.
2022-08-02Doc'd TextField.db_collation as optional.Carlton Gibson
Matches CharField.db_collation docs. Thanks to Paolo Melchiorre for the report.
2022-07-08Fixed #33718 -- Dropped support for MySQL 5.7.Mariusz Felisiak
2022-05-31Fixed docs build with sphinxcontrib-spelling 7.5.0+.Mariusz Felisiak
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked.
2022-03-28Corrected models.FileField signature in docs.Sih Sîng-hông薛丞宏
2022-03-10Changed some words to use inline markup.David Smith
2021-12-28Avoided counting attributes and methods in docs.Mariusz Felisiak
2021-12-13Corrected example in models.DecimalField docs.Beomsoo Kim
2021-12-02Fixed #33334 -- Alphabetized form and model fields in reference docs.Shivam Durgbuns
2021-10-18Fixed #33198 -- Corrected BinaryField.max_length docs.Nick Frazier