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 /tests | |
| 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 'tests')
| -rw-r--r-- | tests/postgres_tests/test_introspection.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/postgres_tests/test_introspection.py b/tests/postgres_tests/test_introspection.py index b17d9fc81a..683292ddec 100644 --- a/tests/postgres_tests/test_introspection.py +++ b/tests/postgres_tests/test_introspection.py @@ -24,17 +24,17 @@ class InspectDBTests(PostgreSQLTestCase): def test_json_field(self): self.assertFieldsInModel( 'postgres_tests_jsonmodel', - ['field = django.contrib.postgresql.fields.JSONField(blank=True, null=True)'], + ['field = django.contrib.postgres.fields.JSONField(blank=True, null=True)'], ) def test_range_fields(self): self.assertFieldsInModel( 'postgres_tests_rangesmodel', [ - 'ints = django.contrib.postgresql.fields.IntegerRangeField(blank=True, null=True)', - 'bigints = django.contrib.postgresql.fields.BigIntegerRangeField(blank=True, null=True)', - 'floats = django.contrib.postgresql.fields.FloatRangeField(blank=True, null=True)', - 'timestamps = django.contrib.postgresql.fields.DateTimeRangeField(blank=True, null=True)', - 'dates = django.contrib.postgresql.fields.DateRangeField(blank=True, null=True)', + 'ints = django.contrib.postgres.fields.IntegerRangeField(blank=True, null=True)', + 'bigints = django.contrib.postgres.fields.BigIntegerRangeField(blank=True, null=True)', + 'floats = django.contrib.postgres.fields.FloatRangeField(blank=True, null=True)', + 'timestamps = django.contrib.postgres.fields.DateTimeRangeField(blank=True, null=True)', + 'dates = django.contrib.postgres.fields.DateRangeField(blank=True, null=True)', ], ) |
