please help me on my problem I hope my title is enough to understand what I mean, please help me on this problem guys.
When I tried this:
id_list = g
I haven't worked with Django much for a couple of years, but this is what I think is happening.
You're assigning a values_list (a tuple) to piste
. You're not assigning grade
objects to piste
. However, in your template you're expecting the elements of piste
to be grades.
I believe you need to get the grade
object first and send that to the template as well as the piste
.