mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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.
This commit is contained in:
parent
d9521f66b1
commit
54026f1e8d
10 changed files with 39 additions and 35 deletions
|
@ -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()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue