diff --git a/django/db/backends/postgresql/schema.py b/django/db/backends/postgresql/schema.py
index 2dbd9e28a1..894314d89c 100644
a
|
b
|
class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
23 | 23 | sql_delete_procedure = 'DROP FUNCTION %(procedure)s(%(param_types)s)' |
24 | 24 | |
25 | 25 | def quote_value(self, value): |
26 | | return psycopg2.extensions.adapt(value) |
| 26 | return psycopg2.extensions.adapt(value).getquoted().decode() |
27 | 27 | |
28 | 28 | def _field_indexes_sql(self, model, field): |
29 | 29 | output = super()._field_indexes_sql(model, field) |