﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18212	GenericIPAddressField does not handle verbose_name and name args like other field types	Dan McGee	Claude Paroz <claude@…>	"Trying to create a field like this fails:

{{{
    ip_verbose_name = models.GenericIPAddressField(""IP Address Verbose"",
            blank=True, null=True)
}}}

Adding a field definition like this to a test case stops runtests.py dead in its tracks:

{{{
  File ""/home/dmcgee/projects/django/django/contrib/comments/models.py"", line 61, in Comment
    unpack_ipv4=True, blank=True, null=True)
  File ""/home/dmcgee/projects/django/django/db/models/fields/__init__.py"", line 1042, in __init__
    validators.ip_address_validators(protocol, unpack_ipv4)
  File ""/home/dmcgee/projects/django/django/core/validators.py"", line 130, in ip_address_validators
    ""You can only use `unpack_ipv4` if `protocol` is set to 'both'"")
ValueError: You can only use `unpack_ipv4` if `protocol` is set to 'both'
}}}

Attached is a fix along with added test cases to ensure all core field types treat verbose_name correctly."	Bug	closed	Database layer (models, ORM)	1.4	Release blocker	fixed	fields	net147	Accepted	1	0	0	0	1	0
