diff options
author | Claude Paroz <claude@2xlibre.net> | 2017-09-09 18:33:05 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2017-09-09 20:22:47 +0200 |
commit | a599ae6018f748f66e774604d12989911ea09d33 (patch) | |
tree | bba36102a26f22e3cc7f2fc8240b02d7b0b7ef05 /django/contrib/postgres/apps.py | |
parent | 0cbb6ac00770d201b8f30a404d516b97fe41485d (diff) | |
download | django-a599ae6018f748f66e774604d12989911ea09d33.tar.gz |
Refs #24928 -- Added introspection support for PostgreSQL RangeField
Diffstat (limited to 'django/contrib/postgres/apps.py')
-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 2ad6aaefc8..897cb09d3e 100644 --- a/django/contrib/postgres/apps.py +++ b/django/contrib/postgres/apps.py @@ -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) |