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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user