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-23 00:04:57 -0500
commited941ef2d0c0560e4eb98e0801e698d18f01d77b (patch)
tree8543c3f7618390cbd78c3d8bef6ac0a47ba177d6
parent19c2fe04a83fb03408a239e6553ffcbefde60346 (diff)
Fixed signature of BaseDatabaseOperations.date_interval_sql()
Backport of 7fa7dd48c4 from master
-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 e7cf6243dc..0c9365ad19 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -75,7 +75,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 1e02832a6c..26b9a72d23 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -1013,6 +1013,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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~