diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-02-16 20:33:37 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-17 14:00:38 -0500 |
| commit | 0d2b97ca18b576d1bbff2ccb089527e36d99eaf9 (patch) | |
| tree | 4b6f2d9080212274c386941dc40ad313c796bd71 /django | |
| parent | 477b82cf8a7eefac98ff4f5afb4754727f4b0004 (diff) | |
[1.9.x] Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.
Backport of fdccc02576ae5a524338f65e629948604d80b4c8 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/base/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
