Ticket #30258: schema.diff

File schema.diff, 636 bytes (added by Tilman Koschnick, 6 years ago)

patch

  • django/db/backends/postgresql/schema.py

    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):  
    2323    sql_delete_procedure = 'DROP FUNCTION %(procedure)s(%(param_types)s)'
    2424
    2525    def quote_value(self, value):
    26         return psycopg2.extensions.adapt(value)
     26        return psycopg2.extensions.adapt(value).getquoted().decode()
    2727
    2828    def _field_indexes_sql(self, model, field):
    2929        output = super()._field_indexes_sql(model, field)
Back to Top