mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Removed IPAddressField per deprecation timeline; refs #20439.
This commit is contained in:
parent
5008a4db44
commit
33457cd3b0
25 changed files with 117 additions and 161 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue