diff options
author | Simon Charette <simon.charette@zapier.com> | 2019-10-08 09:23:07 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-14 07:40:10 +0200 |
commit | 9c5c9bd7091b60fdccc405890dc4f44a8010e954 (patch) | |
tree | 24c6e31c9e30db9baf498a1f335b35177944be7d /django/db/backends/postgresql/operations.py | |
parent | f783a990725fbfce17ef827d3b55ef702535ae96 (diff) | |
download | django-9c5c9bd7091b60fdccc405890dc4f44a8010e954.tar.gz |
Stopped adapting DecimalField values to strings on PostgreSQL.
The psycopg2 backend uses the type information to provide type hints.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index c67062a4a7..51374cb3bb 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -257,6 +257,9 @@ class DatabaseOperations(BaseDatabaseOperations): def adapt_timefield_value(self, value): return value + def adapt_decimalfield_value(self, value, max_digits=None, decimal_places=None): + return value + def adapt_ipaddressfield_value(self, value): if value: return Inet(value) |