def get_all(model, scenario):
    """
    :param model: a database model with fields scenario and name which are unique together
    :return: a dictionary of the fields of the given model corresponding to the current simulation,
     with their name fields as key.
    """
    records = model.objects.filter(scenario=scenario)
    return {record.name: record for record in records}