brew_journal/recipies/views.py
def retrieve(self, request, pk):
        """Get all the specifics of a recipe."""

        recipe = get_object_or_404(Recipe, pk=pk)

        serializer = RecipeSerializer(recipe)

        return Response(serializer.data)
Get all the specifics of a recipe.
Get all the specifics of a recipe.
Get all the specifics of a recipe .
def retrieve(self, request, pk):
        recipe = get_object_or_404(Recipe, pk=pk)
        serializer = RecipeSerializer(recipe)
        return Response(serializer.data)
def retrieve ( self , request , pk ) : recipe = get_object_or_404 ( Recipe , pk = pk ) serializer = RecipeSerializer ( recipe ) return Response ( serializer . data )
Get all the specifics of a recipe.
Get all the specifics of a recipe .
"""Get all the specifics of a recipe."""
self
request
pk