django1/django/db/models
Simon Charette 600628f8f0 Refs #28442 -- Adjusted related lookups handling of expression rhs.
Expressions should never be prepared as other Lookup.get_prep_lookup
implementations hint at by returning early on the presence of the
resolve_expression attribute.

The previous solution was only handling lookups against related fields
pointing at AutoFields and would break for foreign keys to other fields.

It was also causing bidirectional coupling between model fields and
expressions which the method level import of OuterRef was a symptom of.
2019-09-02 10:52:36 +02:00
..
fields Refs #28442 -- Adjusted related lookups handling of expression rhs. 2019-09-02 10:52:36 +02:00
functions Fixed #30602 -- Made Extract raise ValueError when using unsupported lookups for DurationField. 2019-07-12 08:08:35 +02:00
sql Fixed #25367 -- Allowed boolean expressions in QuerySet.filter() and exclude(). 2019-08-29 09:45:29 +02:00
__init__.py Fixed #11964 -- Added support for database check constraints. 2018-07-10 15:32:33 -04:00
aggregates.py Fixed #30665 -- Added support for distinct argument to Avg() and Sum(). 2019-07-31 11:22:50 +02:00
base.py Fixed #29260 -- Skipped an UPDATE when adding a model instance with primary key that has a default. 2019-08-19 13:28:35 +02:00
constants.py Refactored qs.add_q() and utils/tree.py 2013-03-13 10:44:49 +02:00
constraints.py Fixed #30062 -- Added support for unique conditional constraints. 2019-01-12 09:50:20 -05:00
deletion.py Fixed #30339 -- Made Model.delete(keep_parents=True) preserves nested parent reverse relationships. 2019-05-06 13:04:31 +02:00
expressions.py Refs #25367 -- Simplified OrderBy and Lookup by using Case() instead of RawSQL() on Oracle. 2019-08-29 11:56:12 +02:00
indexes.py Fixed #21039 -- Added AddIndexConcurrently/RemoveIndexConcurrently operations for PostgreSQL. 2019-08-21 13:10:06 +02:00
lookups.py Refs #25367 -- Simplified OrderBy and Lookup by using Case() instead of RawSQL() on Oracle. 2019-08-29 11:56:12 +02:00
manager.py Fixed #28982 -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
options.py Fixed #30397 -- Added app_label/class interpolation for names of indexes and constraints. 2019-07-08 14:57:56 +02:00
query.py Added Query.is_sliced property. 2019-07-25 20:45:55 +02:00
query_utils.py Refs #30657 -- Made DeferredAttribute.__init__() to take a field instance instead of a field name. 2019-07-25 07:24:52 +02:00
signals.py Fixed imports per isort 4.3.0. 2018-02-01 09:29:46 +01:00
utils.py Refs #27656 -- Updated django.db docstring verbs according to PEP 257. 2017-02-28 09:17:27 -05:00