From 9c5c9bd7091b60fdccc405890dc4f44a8010e954 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 8 Oct 2019 09:23:07 -0400 Subject: Stopped adapting DecimalField values to strings on PostgreSQL. The psycopg2 backend uses the type information to provide type hints. --- django/db/backends/postgresql/operations.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'django/db/backends/postgresql/operations.py') 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) -- cgit v1.2.1