summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/apps.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/postgres/apps.py')
-rw-r--r--django/contrib/postgres/apps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/postgres/apps.py b/django/contrib/postgres/apps.py
index a8ee3fbf4b..63fd9b274e 100644
--- a/django/contrib/postgres/apps.py
+++ b/django/contrib/postgres/apps.py
@@ -65,6 +65,11 @@ class PostgresConfig(AppConfig):
3910: "django.contrib.postgres.fields.DateTimeRangeField",
3912: "django.contrib.postgres.fields.DateRangeField",
3926: "django.contrib.postgres.fields.BigIntegerRangeField",
+ # PostgreSQL OIDs may vary depending on the
+ # installation, especially for datatypes from
+ # extensions, e.g. "hstore". In such cases, the
+ # type_display attribute (psycopg 3.2+) should be used.
+ "hstore": "django.contrib.postgres.fields.HStoreField",
}
)
if conn.connection is not None: