Commit 95525cac by Kálmán Viktor

firewall: fix IPAddressField

parent f182fc58
......@@ -77,7 +77,7 @@ class IPAddressField(models.Field):
if isinstance(value, IPAddress):
return value
return IPAddress(value, version=version)
return IPAddress(value.split('/')[0], version=version)
def get_internal_type(self):
return "CharField"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment