summaryrefslogtreecommitdiff
path: root/django/db/models
AgeCommit message (Collapse)Author
2018-01-03Fixed #28867 -- Added system check for a model property that clashes with a ↵shanghui
related field accessor.
2018-01-03Fixed #28811 -- Fixed crash when combining regular and group by annotations.Robin Ramael
2018-01-02Removed DeferredAttribute.__init__()'s unused model argument.Mariusz Felisiak
Unused since a8a81aae20a81e012fddc24f3ede556501af64a2.
2018-01-02Fixed #28974 -- Made refresh_from_db() hint routers about its instance.Simon Charette
2017-12-30Fixed #28918 -- Fixed Model.refresh_from_db() for instances hidden by the ↵Tim Graham
default manager.
2017-12-28Fixed #28926 -- Fixed loss of precision of big DurationField values on ↵Sergey Fedoseev
SQLite and MySQL.
2017-12-27Fixed #28967 -- Prevented Cast to FloatField from rounding to integer on MySQL.Sergey Fedoseev
2017-12-27Fixed #28714 -- Added system checks for invalid model field names in ↵hui shang
Meta.indexes. Thanks Gabriel for the report and Adam Johnson for the review.
2017-12-27Refs #28459 -- Improved performance of loading DurationField on SQLite and ↵Sergey Fedoseev
MySQL.
2017-12-27Removed unused variable in QuerySet._earliest_or_latest().Mads Jensen
2017-12-26Refs #28459 -- Improved performance of loading DecimalField on SQLite.Sergey Fedoseev
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-12-26Fixed #28944 -- Fixed crash when chaining values()/values_list() after ↵Ran Benita
QuerySet.select_for_update(of=()).
2017-12-26Fixed #28731 -- Added an error message when using an empty Q() in a When ↵Tim Martin
expression. Otherwise it generates invalid SQL.
2017-12-22Fixed #28937 -- Allowed BinaryField to be editable=True.Cameron Curry
2017-12-12Refs #27985 -- Reallowed using __exact=None as an alias for __isnull=True if ↵Sergey Fedoseev
a custom lookup class with lookup_name != None is registered as the exact lookup. Regression in 58da81a5a372a69f0bac801c412b57f3cce5f188 and prerequisite for refs #28896.
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-08Refs #27849 -- Removed empty Q() hack in filtered Aggregate.as_sql().Simon Charette
This required allowing WhereNode to be provided as When(condition). This was made possible by cf12257db23fa248c89a3da3f718aa01a50ca659.
2017-12-07Fixed #28906 -- Removed unnecessary bool() calls.Tim Graham
2017-12-07Fixed #28907 -- Removed unnecessary if statements.Tim Graham
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-12-05Refs #28876 -- Fixed incorrect class-based model index name generation for ↵Mariusz Felisiak
models with quoted db_table. Thanks Simon Charette and Tim Graham for the review and Carlos E. C. Leite for the report.
2017-12-04Fixed #28873 -- Used dict.setdefault() to set model and form field defaults.Дилян Палаузов
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-12-01Fixed #28863 -- Fixed filter on annotation that contains Q.Sergey Fedoseev
2017-11-30Fixed #28856 -- Fixed a regression in caching of a GenericForeignKey ↵Simon Charette
pointing to a MTI model. Regression in b9f8635f58ad743995cad2081b3dc395e55761e5.
2017-11-29Fixed #28834 -- Followed ancestor links on field cache lookup failure.Simon Charette
Thanks Tim for the review.
2017-11-28Fixed #28837 -- Fixed test client crash if an exception with more than one ↵Nicolas Delaby
arg is raised. Also removed usage of the problematic pattern elsewhere. Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
2017-11-27Fixed #28848 -- Fixed SQLite/MySQL crash when ordering by a filtered ↵Raphael Michel
subquery that uses nulls_first/nulls_last.
2017-11-21Fixed #28820 -- Eliminated an extra query with QuerySet.update() on proxy ↵Yan Mitrofanov
models.
2017-11-21Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after ↵Dražen Odobašić
values() and values_list().
2017-11-18Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.Krzysztof Nazarewski
Thanks Krzysztof Nazarewski for the initial patch.
2017-11-14Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().Дилян Палаузов
2017-11-12Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), ↵Mariusz Felisiak
difference(), and intersection(). Thanks Tim Graham for the review.
2017-11-11Simplified Field.get_choices().Sergey Fedoseev
2017-11-09Fixed #27710 -- Made Model.save() invalidate cached, stale relations after a ↵Paulo
primary key assignment.
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-11-02Fixed #28723 -- Fixed RelatedManager's prefetch_related() cache name.Mike Hansen
2017-10-31Fixed #28750 -- Allowed models to define ↵Charlie Denton
Meta.manager_inheritance_from_future for backwards compatibility. Refs 631f4ab06112aca5bd6a57b81159048f936050bf.
2017-10-30Fixed #28742 -- Fixed AttributeError crash when assigning None to cached ↵Paulo
reverse relations.
2017-10-28Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE .. OF.Ran Benita
Thanks Adam Chidlow for polishing the patch.
2017-10-25Fixed #28689 -- Fixed unquoted table names in Subquery SQL when using OuterRef.Mariusz Felisiak
Regression in f48bc7c3dbd204eefb3c19016b1e4906ac26bee3.
2017-10-21Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.Tomer Chachamu
2017-10-18Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.Simon Charette
Thanks to Rachel Tobin for the initial __qualname__ work and tests.
2017-10-18Fixed outdated comment in RelatedObjectDoesNotExist.Simon Charette
2017-10-16Fixed #28497 -- Restored the ability to use sliced QuerySets with __exact.Tim Graham
Regression in ec50937bcbe160e658ef881021402e156beb0eaf. Thanks Simon Charette for review.
2017-10-13Fixed #28695 -- Allowed models to use __init_subclass__().k
2017-10-13Corrected examples in related field descriptor docstrings.Simon Charette
Using lowercased model class names suggested that accessing the attribute from instances of the class returned an instance of the descriptor, but this is only the case when accessed from the model class.
2017-10-13Refs #28575 -- Removed unnecessary code for model exception pickling.Simon Charette
Setting __qualname__ is sufficient for pickling of DoesNotExist and and MultipleObjectsReturned to work correctly.