From 0c7633178fa9410f102e4708cef979b873bccb76 Mon Sep 17 00:00:00 2001 From: Anssi Kääriäinen Date: Mon, 1 Dec 2014 09:28:01 +0200 Subject: Fixed #24020 -- Refactored SQL compiler to use expressions Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument. --- docs/howto/custom-model-fields.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/howto') diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt index 6474742222..f35cc41d3d 100644 --- a/docs/howto/custom-model-fields.txt +++ b/docs/howto/custom-model-fields.txt @@ -483,7 +483,7 @@ instances:: class HandField(models.Field): # ... - def from_db_value(self, value, connection): + def from_db_value(self, value, connection, context): if value is None: return value return parse_hand(value) -- cgit v1.3