diff --git a/polling_stations/apps/data_importers/base_importers.py b/polling_stations/apps/data_importers/base_importers.py index f2bd928f92..e743af53e6 100644 --- a/polling_stations/apps/data_importers/base_importers.py +++ b/polling_stations/apps/data_importers/base_importers.py @@ -1004,6 +1004,10 @@ def should_ignore_uprns(self, record, *uprns_to_ignore): return record_uprn in uprns_to_ignore + def should_ignore_postcode(self, record, postcodes_to_ignore): + record_postcode = getattr(record, self.residential_postcode_field) + return record_postcode in postcodes_to_ignore + class BaseShpStationsCsvAddressesImporter( BaseStationsAddressesImporter, CsvMixin, ShpMixin