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. --- tests/custom_methods/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/custom_methods') diff --git a/tests/custom_methods/models.py b/tests/custom_methods/models.py index e21f0a6bd4..7def1d6017 100644 --- a/tests/custom_methods/models.py +++ b/tests/custom_methods/models.py @@ -35,6 +35,6 @@ class Article(models.Model): SELECT id, headline, pub_date FROM custom_methods_article WHERE pub_date = %s - AND id != %s""", [connection.ops.value_to_db_date(self.pub_date), + AND id != %s""", [connection.ops.adapt_datefield_value(self.pub_date), self.id]) return [self.__class__(*row) for row in cursor.fetchall()] -- cgit v1.3