mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #20439 -- Started deprecation of IPAddressField
This commit is contained in:
parent
8f51ba669a
commit
1a63092981
14 changed files with 68 additions and 12 deletions
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import tempfile
|
||||
import warnings
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
|
@ -85,7 +86,9 @@ class VerboseNameField(models.Model):
|
|||
# Don't want to depend on Pillow/PIL in this test
|
||||
#field_image = models.ImageField("verbose field")
|
||||
field12 = models.IntegerField("verbose field12")
|
||||
field13 = models.IPAddressField("verbose field13")
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
warnings.simplefilter("always")
|
||||
field13 = models.IPAddressField("verbose field13")
|
||||
field14 = models.GenericIPAddressField("verbose field14", protocol="ipv4")
|
||||
field15 = models.NullBooleanField("verbose field15")
|
||||
field16 = models.PositiveIntegerField("verbose field16")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue