summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2016-08-19Fixed #22288 -- Fixed F() expressions with the __range lookup.Matthew Wilkes
2016-08-18Fixed #25871 -- Added expressions support to QuerySet.values().Ian Foote
2016-08-19Fixed #27073 -- Removed duplicated managers in `Model._meta.managers`.Loïc Bistuer
2016-08-16Refs #26709 -- Added type check for models.Index fields argument.Akshesh
2016-08-16Fixed #24854 -- Refactored QuerySet._valuesIan Foote
Added django.db.models.sql.query.Query.set_values() method to handle query mutation.
2016-08-12Fixed #27030 -- Added contrib.postgres.indexes.GinIndex.Akshesh
2016-08-12Fixed #20888 -- Added support for column order in class-based indexes.Akshesh
2016-08-11Fixed #26891 -- Fixed lookup registration for ForeignObject.Ryan P Kilby
2016-08-09Fixed #13809 -- Made FieldFile.open() respect its mode argument.Chris Sinchok
2016-08-08Fixed #26500 -- Added SKIP LOCKED support to select_for_update().Simon Charette
Thanks Tim for the review.
2016-08-08Moved EmpytResultSet to django.core.exceptions.Johannes Dollinger
This removes the need for some inner imports.
2016-08-08Fixed #26517 -- Fixed ExpressionWrapper with empty queryset.Johannes Dollinger
2016-08-08Fixed #26433 -- Fixed Case expressions with empty When.Johannes Dollinger
2016-08-06Fixed #27026 -- Fixed state initialization of bulk_create() objects if ↵Sjoerd Job Postmus
can_return_ids_from_bulk_insert.
2016-08-05Fixed #26808 -- Added Meta.indexes for class-based indexes.Akshesh
* Added the index name to its deconstruction. * Added indexes to sqlite3.schema._remake_table() so that indexes aren't dropped when _remake_table() is called. Thanks timgraham & MarkusH for review and advice.
2016-08-05Fixed #26706 -- Made RelatedManager modification methods clear ↵Yoong Kang Lim
prefetch_related() cache.
2016-08-04Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_fieldClaude Paroz
Thanks weidwonder for the report.
2016-08-02Refs #26709 -- Replaced Index.get_name() with set_name_with_model().Akshesh
This removes the dependency of the Index class on its 'model' attribute.
2016-07-30Refs #25550 -- Corrected deprecation message for assigning M2M relations.Tim Graham
2016-07-21Refs #26796 -- Fixed ManyToManyField's limit_choices_to warning without a ↵Kevan Swanberg
through model.
2016-07-19Fixed #26916 -- Fixed prefetch_related when using a cached_property as to_attr.Simon Charette
Thanks Trac alias karyon for the report and Tim for the review.
2016-07-16Fixed #26900 -- Fixed crash accessing deferred FileFields.Tim Graham
2016-07-14Fixed #26804 -- Fixed a race condition in QuerySet.update_or_create().Jensen Cochran
2016-07-12Fixed #26884 -- Evaluated callables in QuerySet.update_or_create()'s ↵Kenneth
defaults when updating.
2016-07-12Fixed #17657 -- Made ModelForm respect ModelMultipleChoiceField's to_field_name.Andrey Fedoseev
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
2016-07-11Fixed #26749 -- Preserved behavior of use_for_related_field during deprecation.Julien Hartmann
2016-07-08Fixed #26796 -- Added a system check for m2m fields with ignored ↵Anderson Resende
limit_choices_to.
2016-07-08Fixed #26348 -- Added TruncTime and exposed it through the __time lookup.Simon Charette
Thanks Tim for the review.
2016-07-08Refs #25774, #26348 -- Allowed Trunc functions to operate with time fields.Simon Charette
Thanks Josh for the amazing testing setup and Tim for the review.
2016-07-07Refs #26709 -- Added 'model' argument to SchemaEditor.add/remove_index()Akshesh
This removes the dependency of the Index class on its model attribute when a name is passed to it. Thanks to Markush for discussions.
2016-06-30Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.Berker Peksag
2016-06-30Fixed #25292 -- Fixed crash in ManyToManyField.through_fields check.Andrew Nester
2016-06-29Fixed #19513, #18580 -- Fixed crash on QuerySet.update() after annotate().David Sanders
2016-06-28Fixed #26786 -- Avoided redundant max value validators on integer fields.Eduard Stepanov
2016-06-27Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if ↵Ben Demboski
model_instance=None.
2016-06-27Fixed #26709 -- Added class-based indexes.Akshesh
Added the AddIndex and RemoveIndex operations to use them in migrations. Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
2016-06-18Fixed #26778 -- Fixed ModelSignal.connect() weak argument.Tim Graham
2016-06-17Reverted "Fixed #26398 -- Made FieldFile.open() respect its mode argument."Tim Graham
This reverts commit a52a531a8b34f049fba11c3ee7b010af7534bf90 due to regressions described in refs #26772.
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-06-10Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names.Berker Peksag
2016-06-09Fixed #26648 -- Added a system check for invalid related_query_name's ↵Michal Petrucha
containing underscores.
2016-06-09Replaced a hardcoded LOOKUP_SEP in models/fields/__init__.pyMichal Petrucha
2016-06-09Fixed #26718 -- Added system check for existence of the fields specified by ↵Sergey Fedoseev
ForeignKey.to_field.
2016-06-07Fixed typos in db/models/fields/related_descriptors.pyTim Graham
2016-06-07Fixed typo in db/models/fields/related_descriptors.pyPaulo
2016-06-07Refs #15250 -- Added docstring for ForwardOneToOneDescriptor.Paulo
2016-06-04Fixed #26667 -- Fixed a regression in queries on a OneToOneField that has ↵Tim Graham
to_field and primary_key=True. Thanks Simon Charette for review.
2016-06-03Fixed #15250 -- Avoided extra query on some multi-table inheritance queries.Paulo
Thanks marekw2143 for the initial patch and carljm for support.
2016-06-03Fixed #26638 -- Allowed callable arguments for ↵Will Koster
QuerySet.get_or_create()/update_or_create() defaults.
2016-06-02Fixed #26686 -- Fixed crash when registering model signals with abstract ↵Alex Hill
senders.