brew_journal/recipies/views.py
def destroy(self, request, pk=None):
        """Get rid of a recipe."""

        recipe = get_object_or_404(Recipe, pk=pk)

        recipe.delete()

        return Response({},status=status.HTTP_204_NO_CONTENT)
Get rid of a recipe.
Get rid of a recipe.
Get rid of a recipe .
def destroy(self, request, pk=None):
        recipe = get_object_or_404(Recipe, pk=pk)
        recipe.delete()
        return Response({},status=status.HTTP_204_NO_CONTENT)
def destroy ( self , request , pk = None ) : recipe = get_object_or_404 ( Recipe , pk = pk ) recipe . delete ( ) return Response ( { } , status = status . HTTP_204_NO_CONTENT )
Get rid of a recipe.
Get rid of a recipe .
"""Get rid of a recipe."""
self
request
pk