summaryrefslogtreecommitdiff
path: root/tests/custom_methods
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-05-02 21:27:44 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-05-17 09:39:34 +0200
commit54026f1e8d0de7dbd0e718fe326ba12666a8d2e9 (patch)
treec36a9046caf916328b24d0c6422490b978c66b65 /tests/custom_methods
parentd9521f66b1851b0eacd55bc78f801dc64123e333 (diff)
downloaddjango-54026f1e8d0de7dbd0e718fe326ba12666a8d2e9.tar.gz
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.
Diffstat (limited to 'tests/custom_methods')
-rw-r--r--tests/custom_methods/models.py2
1 files changed, 1 insertions, 1 deletions
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()]