'Given an OGR Feature, the related model and its dictionary mapping,
this routine will retrieve the related model for the ForeignKey
mapping.'

def verify_fk(self, feat, rel_model, rel_mapping):

    fk_kwargs = {}
    for (field_name, ogr_name) in rel_mapping.items():
        fk_kwargs[field_name] = self.verify_ogr_field(feat[ogr_name], rel_model._meta.get_field(field_name))
    try:
        return rel_model.objects.using(self.using).get(**fk_kwargs)
    except ObjectDoesNotExist:
        raise MissingForeignKey(('No    ForeignKey    %s    model    found    with    keyword    arguments:    %s' % (rel_model.__name__, fk_kwargs)))
