diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-02-16 20:33:37 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-17 13:56:42 -0500 |
| commit | fdccc02576ae5a524338f65e629948604d80b4c8 (patch) | |
| tree | 8a48e8a110e91bfa468a629b058f50f521de6491 /django | |
| parent | 88034c9938d92193d2104ecfe77999c69301dcc1 (diff) | |
Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.
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 d68a5aa996..e7ecbca4e4 100644 --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -486,7 +486,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. |
