summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/base.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-05 09:38:29 -0500
committerTim Graham <timograham@gmail.com>2019-02-06 14:12:06 -0500
commit77d25dbd0f20d6a907c805ffae8aaadd87edbacf (patch)
treea082b53101084fb57bbd8d0fb69a3663e4e70057 /django/db/backends/postgresql/base.py
parentd55e88292723764a16f0689c73bc7e739dfa6047 (diff)
downloaddjango-77d25dbd0f20d6a907c805ffae8aaadd87edbacf.tar.gz
Refs #27753 -- Favored SafeString over SafeText.
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r--django/db/backends/postgresql/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py
index e9db668a4d..4be5a193bb 100644
--- a/django/db/backends/postgresql/base.py
+++ b/django/db/backends/postgresql/base.py
@@ -13,7 +13,7 @@ from django.db import connections
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.utils import DatabaseError as WrappedDatabaseError
from django.utils.functional import cached_property
-from django.utils.safestring import SafeText
+from django.utils.safestring import SafeString
from django.utils.version import get_version_tuple
try:
@@ -44,7 +44,7 @@ from .operations import DatabaseOperations # NOQA isort:skip
from .schema import DatabaseSchemaEditor # NOQA isort:skip
from .utils import utc_tzinfo_factory # NOQA isort:skip
-psycopg2.extensions.register_adapter(SafeText, psycopg2.extensions.QuotedString)
+psycopg2.extensions.register_adapter(SafeString, psycopg2.extensions.QuotedString)
psycopg2.extras.register_uuid()
# Register support for inet[] manually so we don't have to handle the Inet()