def METHOD_NAME(self, data):
    """Create internal value."""
    if not is_int(data):
        raise ValidationError(_(messages.SJ_SCAN_IDS_INV))
    int_data = convert_to_int(data)
    actual_scan = Scan.objects.filter(id=int_data).first()
    if actual_scan is None:
        raise ValidationError(_(messages.SJ_SCAN_DO_NOT_EXIST % int_data))
    return actual_scan