diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 2212346..0b5e7d4 100644
a
|
b
|
class GenericIPAddressField(Field):
|
1131 | 1131 | def __init__(self, verbose_name=None, name=None, protocol='both', |
1132 | 1132 | unpack_ipv4=False, *args, **kwargs): |
1133 | 1133 | self.unpack_ipv4 = unpack_ipv4 |
| 1134 | self.protocol = protocol |
1134 | 1135 | self.default_validators, invalid_error_message = \ |
1135 | 1136 | validators.ip_address_validators(protocol, unpack_ipv4) |
1136 | 1137 | self.default_error_messages['invalid'] = invalid_error_message |