summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2018-09-10Fixed #29500 -- Fixed SQLite function crashes on null values.Srinivas Reddy Thatiparthy
Co-authored-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2018-09-08Fixed #29727 -- Made nonexistent joins in F() raise FieldError.Alexander Holmbäck
Regression in 2162f0983de0dfe2178531638ce7ea56f54dd4e7.
2018-08-31Refs #27795 -- Removed force_text() in Model._get_FIELD_display().Jon Dufresne
2018-08-29Fixed #29694 -- Fixed column mismatch crash with QuerySet.values() or ↵Mariusz Felisiak
values_list() after combining querysets with extra() with union(), difference(), or intersection(). Regression in 0b66c3b442875627fa6daef4ac1e90900d74290b.
2018-08-28Refs #27795 -- Removed force_bytes()/smart_text() from model fields.Jon Dufresne
2018-08-23Fixed #29048 -- Added **extra_context to database function as_vendor() methods.priyanshsaxena
2018-08-22Fixed #26352 -- Made system check allow ManyToManyField to target the same ↵Simon Willison
model if through_fields differs.
2018-08-22Fixed #29698 -- Fixed Field._check_choices() crash on invalid choices.Franck Michea
2018-08-22Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz
2018-08-20Removed unused function argument from Window.as_sql().Mariusz Felisiak
Unused since its introduction in d549b8805053d4b064bf492ba90e90db5d7e2a6b.
2018-08-20Fixed #29625 -- Made Model.refresh_from_db() clear prefetch related caches.Ming Qin
2018-08-18Fixed #28649 -- Added ExtractIsoYear database function and iso_year lookup.Sigurd Ljødal
2018-08-13Removed unused enumerate in django/db/models/sql/datastructures.py.Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
2018-08-10Fixed #29653 -- Fixed missing related_query_name reverse accessor if ↵Ramiro Morales
GenericRelation is declared on an abstract base model. Regression in 4ab027b94409e6415b774797bf9d3593da9d9ea8. Thanks Lauri Kainulainen for the report.
2018-08-07Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation ↵Raphael Michel
functions.
2018-08-03Fixed #28668 -- Allowed QuerySet.bulk_create() to ignore insert conflicts.Tom
2018-08-02Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().Michael Sanders
A race condition happened when the object didn't already exist and another process/thread created the object before update_or_create() did and then attempted to update the object, also before update_or_create() saved the object. The update by the other process/thread could be lost.
2018-08-01Fixed typos in comments and docs.luz.paz
2018-08-01Simplified comment in BooleanField.to_python().Tim Graham
2018-07-25Refs #29563 -- Fixed SQLCompiler.execute_sql() to respect ↵Andrew Brown
DatabaseFeatures.can_use_chunked_reads.
2018-07-20Fixed #29568 -- Prevented unnecessary UPDATE queries creating child models.François Dupayrat
2018-07-18Removed duplicate words in various comments.Mariusz Felisiak
2018-07-16Fixed #29413 -- Prevented evaluation of ↵Viktor Danyliuk
QuerySet.get_or_create()/update_or_create() defaults unless needed. Removed the logic added in 81e05a418dc6f347d9627373288e773c477a9fe0 which was obsolete since dbffffa7dc95fc62cbecfd00284bde62ee796f48.
2018-07-16Fixed #28917 -- Prevented Paginator's unordered warning on EmptyQuerySet.Josh Schneier
Thanks carltongibson for the idea and weijunji for the initial patch.
2018-07-14Fixed #29542 -- Fixed invalid SQL if a Subquery from the HAVING clause is ↵Mariusz Felisiak
used in the GROUP BY clause. Thanks Tim Graham for the review.
2018-07-10Fixed #11964 -- Added support for database check constraints.Ian Foote
2018-07-10Deleted unused variable in SQLCompiler.get_related_selections().Mads Jensen
Unused since 01d440fa1e6b5c62acfa8b3fde43dfa1505f93c6.
2018-07-05Refs #26608 -- Removed unneeded name attribute in window functions.Mads Jensen
2018-07-05Refs #28643 -- Added math database functions.Junyi Jiao
Thanks Nick Pope for much review.
2018-07-02Fixed #29530 -- Fixed aliases ordering when chaining annotate() and filter().Mariusz Felisiak
2018-06-29Fixed #28077 -- Added support for PostgreSQL opclasses in Index.Ian Foote
Thanks Vinay Karanam for the initial patch.
2018-06-25Fixed #29447 -- Made RelatedManager.set() pass bulk argument to clear().Alexandr Tatarinov
2018-06-25Refs #29516 -- Reverted inadvertent change in Model.__init__().Tim Graham
2018-06-25Fixed #29517 -- Rephrased error message when passing incorrect kwarg to ↵Federico Bond
model constructor
2018-06-20Fixed #29503 -- Made __in lookup keep order of values in query.Nick Pope
Regression in 86eccdc8b67728d84440a46e5bf62c78f2eddf6d.
2018-05-29Refs #28748 -- Reallowed lazy model field choices.Tim Graham
Regression in 3aa9ab39cce6b2a27d6334ad0148c8f37b6f5986.
2018-05-27Fixed #29230 -- Fixed nested prefetches that clash with descriptors.Paulo
2018-05-27Fixed #29416 -- Removed unnecesary subquery from GROUP BY clause on MySQL ↵Mariusz Felisiak
when using a RawSQL annotation. Regression in 1d070d027c218285b66c0bde8079034b33a87f11.
2018-05-16Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2018-05-14Refs #28834 -- Moved ancestor field cached value fallback to related fields ↵Paulo
descriptor.
2018-05-10Fixed #27629 -- Added router.allow_relation() calls for assignments between ↵Stefan R. Filipek
unsaved model instances.
2018-05-03Refs #29358 -- Corrected wording in primary key check message.Carlton Gibson
2018-05-03Fixed #29358 -- Added a system check to prohibit models with more than one ↵Hasan Ramezani
primary_key field.
2018-04-27Fixed #29367 -- Fixed model state on objects with a primary key created with ↵Oscar Esgalha
QuerySet.bulk_create().
2018-04-20Fixed #29247 -- Allowed blank model field choice to be defined in nested ↵orlnub123
choices.
2018-04-19Fixed #28600 -- Added prefetch_related() support to RawQuerySet.Adnan Umer
2018-04-19Fixed #29337 -- Added __len__() & __bool__() to RawQuerySet.Adnan Umer
2018-04-19Fixed #29339 -- Added result caching to RawQuerySet.Adnan Umer
2018-04-19Fixed #28574 -- Added QuerySet.explain().Tom
2018-04-17Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.Brett Cannon