def get_queryset_from_id(klass, id):
    def target_func(*args, **kwargs):
        return klass.objects.filter(id=id)
    return target_func
Returns a function usable as a C{target_func} parameter. The returned
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/utils.py/get_queryset_from_id