mirror of
https://github.com/django/django.git
synced 2025-11-03 13:23:19 +00:00
Fixed #29307 -- Fixed inspectdb import paths for django.contrib.postgres fields.
Thanks erindy for the report.
This commit is contained in:
parent
6a1957bb98
commit
65c44a5c1d
3 changed files with 14 additions and 13 deletions
|
|
@ -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)',
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue