Merge pull request #811 from niphlod/update/ipaddr
updated ipaddr to the latest version
This commit is contained in:
commit
dbd5bf0be6
2 files changed
+252
-399
No files matched your search
+251
-398
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -3808,7 +3808,7 @@ class IS_IPADDRESS(Validator):
|
||||
from gluon.contrib import ipaddr as ipaddress
|
||||
|
||||
try:
|
||||
ip = ipaddress.ip_address(value)
|
||||
ip = ipaddress.IPAddress(value)
|
||||
except ValueError, e:
|
||||
return (value, translate(self.error_message))
|
||||
|
||||
|
||||
Reference in new issue
Block a user