You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's because the following line part user=request.user
def index(request):
if not request.user.is_authenticated:
return render(request, 'music/login.html')
else:
albums = Album.objects.filter(user=request.user)
if we search a song , it fetch all songs present in DB but we have to show only that songs which belongs to the user.
The text was updated successfully, but these errors were encountered: