diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-17 20:42:41 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-19 11:12:57 -0500 |
| commit | 33457cd3b0da69320d3f66bb6d5a673950c5032f (patch) | |
| tree | c69fca5e8972e75e15c800901984c017e69ca708 /tests/inspectdb | |
| parent | 5008a4db440c8f7d108a6979b959025ffb5789ba (diff) | |
Removed IPAddressField per deprecation timeline; refs #20439.
Diffstat (limited to 'tests/inspectdb')
| -rw-r--r-- | tests/inspectdb/models.py | 1 | ||||
| -rw-r--r-- | tests/inspectdb/tests.py | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/inspectdb/models.py b/tests/inspectdb/models.py index 9cc0a196a5..5c968c6f9f 100644 --- a/tests/inspectdb/models.py +++ b/tests/inspectdb/models.py @@ -59,7 +59,6 @@ class ColumnTypes(models.Model): file_path_field = models.FilePathField() float_field = models.FloatField() int_field = models.IntegerField() - ip_address_field = models.IPAddressField() gen_ip_adress_field = models.GenericIPAddressField(protocol="ipv4") pos_int_field = models.PositiveIntegerField() pos_small_int_field = models.PositiveSmallIntegerField() diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index e35fe0bd48..70538b1bdf 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -61,11 +61,9 @@ class InspectDBTestCase(TestCase): assertFieldType('file_field', "models.CharField(max_length=100)") assertFieldType('file_path_field', "models.CharField(max_length=100)") if connection.features.can_introspect_ip_address_field: - assertFieldType('ip_address_field', "models.GenericIPAddressField()") assertFieldType('gen_ip_adress_field', "models.GenericIPAddressField()") elif (connection.features.can_introspect_max_length and not connection.features.interprets_empty_strings_as_nulls): - assertFieldType('ip_address_field', "models.CharField(max_length=15)") assertFieldType('gen_ip_adress_field', "models.CharField(max_length=39)") if (connection.features.can_introspect_max_length and not connection.features.interprets_empty_strings_as_nulls): |
