diff options
author | Alasdair Nicol <alasdair.nicol@spatialbuzz.com> | 2018-04-09 16:46:31 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-04-10 09:33:05 -0400 |
commit | 65c44a5c1d5412d402af19480e3c1c3e3e88893a (patch) | |
tree | 31b5ffa0df5a62453efd103182e61968c26bffb9 /django/contrib/postgres/apps.py | |
parent | 6a1957bb9887f8e0bb69d3d2b180a1414d38c1fc (diff) | |
download | django-65c44a5c1d5412d402af19480e3c1c3e3e88893a.tar.gz |
Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
Thanks erindy for the report.
Diffstat (limited to 'django/contrib/postgres/apps.py')
-rw-r--r-- | django/contrib/postgres/apps.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/django/contrib/postgres/apps.py b/django/contrib/postgres/apps.py index 897cb09d3e..1ab5074f19 100644 --- a/django/contrib/postgres/apps.py +++ b/django/contrib/postgres/apps.py @@ -17,12 +17,12 @@ class PostgresConfig(AppConfig): for conn in connections.all(): 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', + 3802: 'django.contrib.postgres.fields.JSONField', + 3904: 'django.contrib.postgres.fields.IntegerRangeField', + 3906: 'django.contrib.postgres.fields.FloatRangeField', + 3910: 'django.contrib.postgres.fields.DateTimeRangeField', + 3912: 'django.contrib.postgres.fields.DateRangeField', + 3926: 'django.contrib.postgres.fields.BigIntegerRangeField', }) if conn.connection is not None: register_type_handlers(conn) |