﻿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
734	isValidIPAddress4 uses wrong ValidationError object	hugo	Adrian Holovaty	"The isValidIPAddress4 uses validators.ValidationError instead of just ValidationError and so throws this traceback:

{{{
There's been an error:

Traceback (most recent call last):

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/handlers/base.py"", line 71, in get_response
    response = callback(request, **param_dict)

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/contrib/admin/views/decorators.py"", line 49, in _checklogin
    return view_func(request, *args, **kwargs)

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/contrib/admin/views/main.py"", line 878, in change_stage
    errors = manipulator.get_validation_errors(new_data)

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/formfields.py"", line 70, in get_validation_errors
    validator(new_data.get(field.field_name, ''), new_data)

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/formfields.py"", line 695, in isValidIPAddress
    validators.isValidIPAddress4(field_data, all_data)

  File ""/usr/local/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/validators.py"", line 99, in isValidIPAddress4
    raise validators.ValidationError, ""Please enter a valid IP address.""

NameError: global name 'validators' is not defined
}}}

This was [http://simon.bofh.ms/logger/django/2005/11/04/23/18/ reported on IRC by mflanagan]."	defect	closed	Validators		normal	fixed			Unreviewed	0	0	0	0	0	0
