(request, podcast)
return render(
        request, "podcast-history.html", {"history": history, "podcast": podcast}
    )
shows the subscription history of the user
shows the subscription history of the user
shows the subscription history of the user
def podcast_history(request, podcast):
    """shows the subscription history of the user"""

    user = request.user
    history = HistoryEntry.objects.filter(user=request.user, podcast=podcast)

    return render(
        request, "podcast-history.html", {"history": history, "podcast": podcast}
    )
def podcast_history ( request , podcast ) : user = request . user history = HistoryEntry . objects . filter ( user = request . user , podcast = podcast ) return render ( request , "podcast-history.html" , { "history" : history , "podcast" : podcast } )