summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-11-14 13:36:15 +0100
committerGitHub <noreply@github.com>2025-11-14 13:36:15 +0100
commit35f86b641a4eb26fa2b7c3842b6d374834a4ea6b (patch)
tree66560f57604219cf10a2d65a9fad7b3545f2ff75 /django/contrib/postgres
parent0eec2a163a4b2ea4e82c53ae1d7b71bf43ac911d (diff)
Refs #24928 -- Added introspection support for PostgreSQL HStoreField.
Diffstat (limited to 'django/contrib/postgres')
-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: