summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-17 20:42:41 -0500
committerTim Graham <timograham@gmail.com>2015-01-19 11:12:57 -0500
commit33457cd3b0da69320d3f66bb6d5a673950c5032f (patch)
treec69fca5e8972e75e15c800901984c017e69ca708 /django/db
parent5008a4db440c8f7d108a6979b959025ffb5789ba (diff)
Removed IPAddressField per deprecation timeline; refs #20439.
Diffstat (limited to 'django/db')
-rw-r--r--django/db/models/fields/__init__.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index d5dfac733f..d2493dbee0 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -1894,13 +1894,13 @@ class BigIntegerField(IntegerField):
class IPAddressField(Field):
empty_strings_allowed = False
description = _("IPv4 address")
- system_check_deprecated_details = {
+ system_check_removed_details = {
'msg': (
- 'IPAddressField has been deprecated. Support for it (except in '
- 'historical migrations) will be removed in Django 1.9.'
+ 'IPAddressField has been removed except for support in '
+ 'historical migrations.'
),
'hint': 'Use GenericIPAddressField instead.',
- 'id': 'fields.W900',
+ 'id': 'fields.E900',
}
def __init__(self, *args, **kwargs):
@@ -1921,11 +1921,6 @@ class IPAddressField(Field):
def get_internal_type(self):
return "IPAddressField"
- def formfield(self, **kwargs):
- defaults = {'form_class': forms.IPAddressField}
- defaults.update(kwargs)
- return super(IPAddressField, self).formfield(**defaults)
-
class GenericIPAddressField(Field):
empty_strings_allowed = False