1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-10-31 21:17:32 +00:00

Only filter by id when query by title

This commit is contained in:
Damillora 2021-01-09 14:30:51 +01:00
parent ed4c2065b6
commit c75f64766a

View File

@ -21,5 +21,5 @@ def song_id(request, id):
return redirect(song_show,id=song.id,title=song.title)
def song_show(request, id, title):
song = Song.objects.filter(id=id,title=title)[0]
song = Song.objects.filter(id=id)[0]
return render(request,'songs/show.html',{'song':song})