From 28bc89ea88d0b2f0876712577fe8e62587275ec9 Mon Sep 17 00:00:00 2001 From: bashmak Date: Tue, 16 May 2017 11:07:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B0=D1=80=D1=8B=D0=B9=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20super()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mydefs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mydefs.py b/mydefs.py index d71bfaf..56f0e9f 100644 --- a/mydefs.py +++ b/mydefs.py @@ -75,12 +75,12 @@ class MyGenericIPAddressField(models.GenericIPAddressField): description = "Int32 notation ip address" def __init__(self, protocol='ipv4', *args, **kwargs): - super().__init__(protocol=protocol, *args, **kwargs) + super(MyGenericIPAddressField, self).__init__(protocol=protocol, *args, **kwargs) self.max_length = 8 def get_prep_value(self, value): # strIp to Int - value = super().get_prep_value(value) + value = super(MyGenericIPAddressField, self).get_prep_value(value) return ip2int(value) def to_python(self, addr):