From 0d2b97ca18b576d1bbff2ccb089527e36d99eaf9 Mon Sep 17 00:00:00 2001 From: Akshesh Date: Tue, 16 Feb 2016 20:33:37 +0530 Subject: [1.9.x] Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery. Backport of fdccc02576ae5a524338f65e629948604d80b4c8 from master --- django/db/backends/base/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py index 6e5aff19cd..acca12708a 100644 --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -485,7 +485,7 @@ class BaseDatabaseOperations(object): raise ValueError("Django does not support timezone-aware times.") return six.text_type(value) - def adapt_decimalfield_value(self, value, max_digits, decimal_places): + def adapt_decimalfield_value(self, value, max_digits=None, decimal_places=None): """ Transforms a decimal.Decimal value to an object compatible with what is expected by the backend driver for decimal (numeric) columns. -- cgit v1.3