mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
Thanks erindy for the report.
This commit is contained in:
committed by
Tim Graham
parent
6a1957bb98
commit
65c44a5c1d
@@ -22,17 +22,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)',
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user