@classmethod
def CheckAreasWithSpecificSubdistricts(cls, postcode):
    impacted_by_rule = False
    if postcode.outward_subdistrict:
        areas_with_subdistricts = cls.AreasWithSubdistricts
        subdivided_districts_in_area = areas_with_subdistricts.get(postcode.outward_area, {})
        specific_subdistrict_codes = subdivided_districts_in_area.get(postcode.outward_district, None)
        impacted_by_rule = (specific_subdistrict_codes and (not (postcode.outward_subdistrict in specific_subdistrict_codes)))
    return impacted_by_rule
@classmethod
def CheckAreasWithSpecificSubdistricts(cls, postcode):
    impacted_by_rule = False
    if postcode.outward_subdistrict:
        areas_with_subdistricts = cls.AreasWithSubdistricts
        subdivided_districts_in_area = areas_with_subdistricts.get(postcode.outward_area, {})
        specific_subdistrict_codes = subdivided_districts_in_area.get(postcode.outward_district, None)
        impacted_by_rule = (specific_subdistrict_codes and (not (postcode.outward_subdistrict in specific_subdistrict_codes)))
    return impacted_by_rule