def __init__(self, *args, **kwargs):
    self.mask = kwargs.pop('mask', None)
    self.min_mask = kwargs.pop('mask_range_from', 0)
    self.version = kwargs.pop('version', IPv4)
    super(IPField, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs):
    self.mask = kwargs.pop('mask', None)
    self.min_mask = kwargs.pop('mask_range_from', 0)
    self.version = kwargs.pop('version', IPv4)
    super(IPField, self).__init__(*args, **kwargs)