1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.

This commit is contained in:
Akshesh
2016-02-16 20:33:37 +05:30
committed by Tim Graham
parent 88034c9938
commit fdccc02576
4 changed files with 11 additions and 1 deletions

View File

@@ -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.