def METHOD_NAME(self):
    """Clean the ip_range field"""
    data = self.cleaned_data['ip_range']
    try:
        data = iprange.MachinetrackerIPRange.from_string(data)
    except ValueError as error:
        raise forms.ValidationError("Invalid syntax: %s" % error)
    return data