diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-11-14 13:36:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-14 13:36:15 +0100 |
| commit | 35f86b641a4eb26fa2b7c3842b6d374834a4ea6b (patch) | |
| tree | 66560f57604219cf10a2d65a9fad7b3545f2ff75 /django/contrib | |
| parent | 0eec2a163a4b2ea4e82c53ae1d7b71bf43ac911d (diff) | |
Refs #24928 -- Added introspection support for PostgreSQL HStoreField.
Diffstat (limited to 'django/contrib')
| -rw-r--r-- | django/contrib/postgres/apps.py | 5 |
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: |
