(self)
return recipes
Lists of recipe ingredients by recipe_code
Lists of recipe ingredients by recipe_code
Lists of recipe ingredients by recipe_code
def recipes(self):
        """Lists of recipe ingredients by recipe_code"""
        recipes = defaultdict(list)
        for item_dict in self._get_fixture_dicts(RecipeIngredient.table_name):
            # The fixture contains duplicate entries for each language.
            if item_dict.pop('iso_code') == 'en':
                ingredient = _wrap(RecipeIngredient, item_dict)
                recipes[ingredient.recipe_code].append(ingredient)
        return recipes
def recipes ( self ) : recipes = defaultdict ( list ) for item_dict in self . _get_fixture_dicts ( RecipeIngredient . table_name ) : # The fixture contains duplicate entries for each language. if item_dict . pop ( 'iso_code' ) == 'en' : ingredient = _wrap ( RecipeIngredient , item_dict ) recipes [ ingredient . recipe_code ] . append ( ingredient ) return recipes