Removing explicit checks for None and 0 in _extract_data when checking foreign key field value