mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #24928 -- Added introspection support for PostgreSQL RangeField
This commit is contained in:
@@ -18,6 +18,11 @@ class PostgresConfig(AppConfig):
|
||||
if conn.vendor == 'postgresql':
|
||||
conn.introspection.data_types_reverse.update({
|
||||
3802: 'django.contrib.postgresql.fields.JSONField',
|
||||
3904: 'django.contrib.postgresql.fields.IntegerRangeField',
|
||||
3906: 'django.contrib.postgresql.fields.FloatRangeField',
|
||||
3910: 'django.contrib.postgresql.fields.DateTimeRangeField',
|
||||
3912: 'django.contrib.postgresql.fields.DateRangeField',
|
||||
3926: 'django.contrib.postgresql.fields.BigIntegerRangeField',
|
||||
})
|
||||
if conn.connection is not None:
|
||||
register_type_handlers(conn)
|
||||
|
||||
Reference in New Issue
Block a user