summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Manfre <mmanfre@gmail.com>2015-02-22 23:23:16 -0500
committerMichael Manfre <mmanfre@gmail.com>2015-02-22 23:23:16 -0500
commit7fa7dd48c4c785fd34161c6418de5accb1618422 (patch)
tree8f217d7e226308b50ac69da228d86bff97e0b4b1
parent556a74879f5c2d382927b5b68451c76d344e29e4 (diff)
Fixed signature of BaseDatabaseOperations.date_interval_sql() and document the change.
-rw-r--r--django/db/backends/base/operations.py2
-rw-r--r--docs/releases/1.8.txt3
2 files changed, 4 insertions, 1 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index 9777a77e65..28b110f849 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -76,7 +76,7 @@ class BaseDatabaseOperations(object):
"""
raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_extract_sql() method')
- def date_interval_sql(self, sql, connector, timedelta):
+ def date_interval_sql(self, timedelta):
"""
Implements the date interval functionality for expressions
"""
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index d82995bafc..6a3b5554a6 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -1014,6 +1014,9 @@ those writing third-party backends in updating their code:
* The ``SQLCompiler.as_sql()`` method now takes a ``subquery`` parameter
(:ticket:`24164`).
+* The ``BaseDatabaseOperations.date_interval_sql()`` method now only takes a
+ ``timedelta`` parameter.
+
:mod:`django.contrib.admin`
~~~~~~~~~~~~~~~~~~~~~~~~~~~