(domain)
return {
        _hash_key(obj): obj.default_consumption
        for obj in DefaultConsumption.objects.filter(domain=domain)
        if obj.default_consumption
    }
Builds a dict to look up consumption values from.
Builds a dict to look up consumption values from.
Builds a dict to look up consumption values from .
def build_consumption_dict(domain):
    """
    Builds a dict to look up consumption values from.
    """
    return {
        _hash_key(obj): obj.default_consumption
        for obj in DefaultConsumption.objects.filter(domain=domain)
        if obj.default_consumption
    }
def build_consumption_dict ( domain ) : return { _hash_key ( obj ) : obj . default_consumption for obj in DefaultConsumption . objects . filter ( domain = domain ) if obj . default_consumption }