use items with "empty" values (e.g. location_code="") in string representation and compare against None