def _dict_to_expressions(model_class, dct):
    return [(getattr(model_class, k) == v) for (k, v) in iteritems(dct)]
def _dict_to_expressions(model_class, dct):
    return [(getattr(model_class, k) == v) for (k, v) in iteritems(dct)]