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:58:40 -0400 |
| commit | 0eb71b85bf7705f7418fae2572fe1960dd514300 (patch) | |
| tree | 7c1bee93bdc5904065e25c3e9e3d15fcbe47e8cb /django | |
| parent | f185a1fca0223b460c6e1e960f5203616bf8d069 (diff) | |
[2.0.x] Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
Thanks erindy for the report.
Backport of 65c44a5c1d5412d402af19480e3c1c3e3e88893a from master
Diffstat (limited to 'django')
| -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) |
