From 54026f1e8d0de7dbd0e718fe326ba12666a8d2e9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 2 May 2015 21:27:44 +0200 Subject: Renamed value_to_db_xxx to adapt_xxxfield_value. This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules. --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/db/models/sql') diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 52553ddfa1..776f06a7a8 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -99,7 +99,7 @@ class RawQuery(object): # Adapt parameters to the database, as much as possible considering # that the target type isn't known. See #17755. params_type = self.params_type - adapter = connection.ops.value_to_db_unknown + adapter = connection.ops.adapt_unknown_value if params_type is tuple: params = tuple(adapter(val) for val in self.params) elif params_type is dict: -- cgit v1.3