Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #734 -- Fixed namespace bug in validators.isValidIPAddress4. Th…

…anks, Hugo and mflanagan

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8ee33da58558fd2da918f4e9e55556f07831cd93 1 parent e859854
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/validators.py
View
2  django/core/validators.py
@@ -97,7 +97,7 @@ def isValidIPAddress4(field_data, all_data):
valid_parts = [el for el in field_data.split('.') if 0 <= int(el) <= 255]
if len(valid_parts) == 4:
return
- raise validators.ValidationError, _("Please enter a valid IP address.")
+ raise ValidationError, _("Please enter a valid IP address.")
def isNotEmpty(field_data, all_data):
if field_data.strip() == '':

0 comments on commit 8ee33da

Please sign in to comment.
Something went wrong with that request. Please try again.