diff options
Diffstat (limited to 'tests/custom_methods')
| -rw-r--r-- | tests/custom_methods/models.py | 2 |
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()] |
