mirror of
https://github.com/Damillora/Altessimo
synced 2024-11-21 21:47:33 +00:00
Only filter by id when query by title
This commit is contained in:
parent
ed4c2065b6
commit
c75f64766a
@ -21,5 +21,5 @@ def song_id(request, id):
|
|||||||
return redirect(song_show,id=song.id,title=song.title)
|
return redirect(song_show,id=song.id,title=song.title)
|
||||||
|
|
||||||
def song_show(request, id, 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})
|
return render(request,'songs/show.html',{'song':song})
|
Loading…
Reference in New Issue
Block a user