django1/django/db/models
Simon Charette 5e3463f6bc Fixed #27595 -- Made ForeignKey.get_col() follow target chains.
Previously, foreign relationships were followed only one level deep which
prevents foreign keys to foreign keys from being resolved appropriately.
This was causing issues such as improper database value conversion for
UUIDField on SQLite because the resolved expression's output field's
internal type wasn't correct. Added tests to make sure unlikely foreign
reference cycles don't cause recursion errors.

Refs #24343.

Thanks oyooyo for the report and Wayne Merry for the investigation.
2018-10-22 09:49:34 -04:00
..
fields Fixed #27595 -- Made ForeignKey.get_col() follow target chains. 2018-10-22 09:49:34 -04:00
functions Fixed #29767 -- Made date-related casts work on SQLite 2018-10-01 13:27:30 +02:00
sql Refs #27795 -- Removed force_text() usage in db/models/sql/query.py. 2018-10-08 14:47:01 -04:00
__init__.py Fixed #11964 -- Added support for database check constraints. 2018-07-10 15:32:33 -04:00
aggregates.py Fixed #29048 -- Added **extra_context to database function as_vendor() methods. 2018-08-23 11:52:09 -04:00
base.py Fixed #21171 -- Avoided starting a transaction when a single (or atomic queries) are executed. 2018-10-17 12:19:02 +02:00
constants.py Refactored qs.add_q() and utils/tree.py 2013-03-13 10:44:49 +02:00
constraints.py Refs #29641 -- Extracted reusable CheckConstraint logic into a base class. 2018-10-02 13:11:18 -04:00
deletion.py Fixed #21171 -- Avoided starting a transaction when a single (or atomic queries) are executed. 2018-10-17 12:19:02 +02:00
expressions.py Moved make_hashable() to django.utils and added tests. 2018-10-17 11:17:23 -04:00
indexes.py Added django.db.backends.utils.names_digest() to remove redundant code. 2018-10-02 10:41:43 -04:00
lookups.py Fixed #29503 -- Made __in lookup keep order of values in query. 2018-06-20 09:29:06 -04:00
manager.py Fixed #28982 -- Simplified code with and/or. 2018-01-03 20:12:23 -05:00
options.py Fixed #11964 -- Added support for database check constraints. 2018-07-10 15:32:33 -04:00
query.py Fixed #21171 -- Avoided starting a transaction when a single (or atomic queries) are executed. 2018-10-17 12:19:02 +02:00
query_utils.py Replaced kwargs.pop() with keyword-only arguments. 2018-10-08 15:06:02 -04: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