Merge pull request #811 from niphlod/update/ipaddr
updated ipaddr to the latest version
This commit is contained in:
+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