summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2021-12-06[4.0.x] Fixed #33335 -- Made model validation ignore functional unique ↵Hannes Ljungberg
constraints. Regression in 3aa545281e0c0f9fac93753e3769df9e0334dbaa. Thanks Hervé Le Roy for the report. Backport of 1eaf38fa87384fe26d1abf6e389d6df1600d4d8c from main
2021-12-02[4.0.x] Fixed #33334 -- Alphabetized form and model fields in reference docs.Shivam Durgbuns
Backport of d75c387f46c55459a2daf071e5463bad0ad7dcbd from main
2021-11-23[4.0.x] Corrected signatures of QuerySet's methods.Mariusz Felisiak
Backport of a17becf4c7f4e4057e8c94990e4b4999be0aea95 from main
2021-10-18[4.0.x] Fixed #33198 -- Corrected BinaryField.max_length docs.Nick Frazier
Backport of 0d4e575c96d408e0efb4dfd0cbfc864219776950 from main
2021-10-05[4.0.x] Fixed #22224 -- Added note about supplying missing values for ↵Jacob Walls
non-nullable fields with blank=True. Backport of cd6bddd44e0a1c3c6a96a3677f8366ef0e4b6782 from main
2021-10-04[4.0.x] Fixed #32888 -- Doc'd that select_for_update() only locks tables ↵Hannes Ljungberg
with selected columns. Backport of d400b08a8baa697905daadd47a6ba12336e93336 from main
2021-09-29[4.0.x] Fixed #33141 -- Renamed Expression.empty_aggregate_value to ↵David Wobrock
empty_result_set_value. Backport of ad36a198a12df4dff65992191b3eb0a474e2daac from main
2021-09-16Fixed #32365 -- Made zoneinfo the default timezone implementation.Carlton Gibson
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews.
2021-09-10Clarified type of Window()'s partition_by and order_by arguments.David Sanders
2021-09-09Fixed #33084 -- Removed incorrect system check for ManyToManyField with ↵Hasan Ramezani
limit_choices_to.
2021-08-26Fixed #33046 -- Added note about using length of cached result by ↵Can Sarıgöl
QuerySet.count().
2021-07-30Refs #32956 -- Updated words ending in -wards.David Smith
AP styleguide: Virtually none of the words ending with -wards end with an s.
2021-07-29Made minor edits to QuerySet.update_or_create() docs.Abhyudai
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-07-26Fixed #32957 -- Improved visibility of arguments sections in Model.save() docs.abhiabhi94
2021-07-19Fixed #10929 -- Added default argument to aggregates.Nick Pope
Thanks to Simon Charette and Adam Johnson for the reviews.
2021-07-09Fixed #27021 -- Allowed lookup expressions in annotations, aggregations, and ↵Ian Foote
QuerySet.filter(). Thanks Hannes Ljungberg and Simon Charette for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-07-08Fixed #32908 -- Allowed select_for_update(skip_locked) on MariaDB 10.6+.Mariusz Felisiak
2021-07-07Documented in_bulk behavior with nonexistent id_list items.Claude Paroz
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2021-07-02Refs #26430 -- Re-introduced empty aggregation optimization.Simon Charette
The introduction of the Expression.empty_aggregate_value interface allows the compilation stage to enable the EmptyResultSet optimization if all the aggregates expressions implement it. This also removes unnecessary RegrCount/Count.convert_value() methods. Disabling the empty result set aggregation optimization when it wasn't appropriate prevented None returned for a Count aggregation value. Thanks Nick Pope for the review.
2021-06-29Fixed #32381 -- Made QuerySet.bulk_update() return the number of objects ↵abhiabhi94
updated. Co-authored-by: Diego Lima <diego.lima@lais.huol.ufrn.br>
2021-05-18Fixed #32755 -- Corrected Model.get_absolute_url() example in docs.Girish Sontakke
2021-05-12Fixed a typo in docs/ref/models/fields.txt.Nick Pope
datetime.date.utcnow() doesn't exist, should be .today().
2021-04-14Fixed #32645 -- Fixed QuerySet.update() crash when ordered by joined fields ↵Mariusz Felisiak
on MySQL/MariaDB. Thanks Matt Westcott for the report. Regression in 779e615e362108862f1681f965ee9e4f1d0ae6d2.
2021-04-07Fixed #32501 -- Added support for returning fields from INSERT statements on ↵girishsontakke
SQLite 3.35+.
2021-03-29Fixed #31487 -- Added precision argument to Round().Nick Pope
2021-03-25Refs #31003 -- Moved note about return value of QuerySet.bulk_create() to ↵Claude Paroz
the first paragraph.
2021-03-25Doc'd that RawSQL can be used with __in.Simon Willison
2021-03-24Refs #32460 -- Doc'd and tested that property names of model choice enums ↵Nick Pope
cannot be used as members.
2021-03-23Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key ↵Mariusz Felisiak
transforms with booleans on SQLite. Thanks Matthew Cornell for the report.
2021-03-06Fixed #24141 -- Added QuerySet.contains().Johan Schiff
2021-03-04Refs #32483 -- Doc'd caveat about using JSONField key transforms to booleans ↵Mariusz Felisiak
with QuerySet.values()/values_list() on SQLite.
2021-02-23Fixed #30916 -- Added support for functional unique constraints.Hannes Ljungberg
Thanks Ian Foote and Mariusz Felisiak for reviews.
2021-01-28Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for ↵Timothy McCurrach
multiple batches.
2021-01-22Refs #32372 -- Updated manager name in related objects reference docs.Jack
Follow up to 725c549ae7a34d83447201da7190f8d71c7fc2fc.
2021-01-22Fixed #32372 -- Made examples in related objects reference docs consistent.Jack Aitken
2021-01-14Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak
2021-01-14Refs #30841 -- Made isnull lookup raise ValueError for non-boolean values.Mariusz Felisiak
Per deprecation timeline.
2021-01-14Removed versionadded/changed annotations for 3.1.Mariusz Felisiak
2021-01-13Fixed #26167 -- Added support for functional indexes.Hannes Ljungberg
Thanks Simon Charette, Mads Jensen, and Mariusz Felisiak for reviews. Co-authored-by: Markus Holtermann <info@markusholtermann.eu>
2021-01-12Removed unused import in docs/ref/models/expressions.txt. (#13879)Mariusz Felisiak
2021-01-11Fixed #32313 -- Corrected QuerySet.in_bulk() signature.Iuri de Silvio
2021-01-07Fixed #32315 -- Doc'd FieldFile.path.Hasan Ramezani
2021-01-05Fixed #32231 -- Allowed passing None params to QuerySet.raw().Alexander Lyabah
2021-01-04Fixed #32310 -- Fixed note about reverse accessors for intermediate table ↵Fabio Sangiovanni
for self-referential ManyToManyField.
2020-12-30Fixed #32303 -- Bumped minimum supported SQLite to 3.9.0.Mariusz Felisiak
2020-12-21Corrected code-block directives in docs/ref/models/meta.txt.Jon Dufresne
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-12-15Added backticks to code literals in various docs.Jon Dufresne
2020-12-10Refs #31792 -- Updated SQL example in Exists() docs.Kevin Marsh
Follow up to 51297a92324976a704279b567ec4f80bb92d7b60.