summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/operations.py
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 /django/db/backends/postgresql_psycopg2/operations.py
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 'django/db/backends/postgresql_psycopg2/operations.py')
-rw-r--r--django/db/backends/postgresql_psycopg2/operations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py
index df96d16ad2..65d6c9154b 100644
--- a/django/db/backends/postgresql_psycopg2/operations.py
+++ b/django/db/backends/postgresql_psycopg2/operations.py
@@ -225,16 +225,16 @@ class DatabaseOperations(BaseDatabaseOperations):
items_sql = "(%s)" % ", ".join(["%s"] * len(fields))
return "VALUES " + ", ".join([items_sql] * num_values)
- def value_to_db_date(self, value):
+ def adapt_datefield_value(self, value):
return value
- def value_to_db_datetime(self, value):
+ def adapt_datetimefield_value(self, value):
return value
- def value_to_db_time(self, value):
+ def adapt_timefield_value(self, value):
return value
- def value_to_db_ipaddress(self, value):
+ def adapt_ipaddressfield_value(self, value):
if value:
return Inet(value)
return None