-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
I've received an error when I tried to save a CIDR like '64.34.117.2/20', and I got a database error, says the CIDR is not correct.
Then I check the source code of this plug-in, and found the piece of code here:
try:
return IPNetwork(value)
except (AddrFormatError, TypeError), e:
raise ValidationError(str(e))
I highly doubt that this is doing the right thing, it only check if we can convert the IP value to a valid IPNetwork object, instead of a valid CIDR.
Metadata
Metadata
Assignees
Labels
No labels