1👍
I think you have an error in your code.
Try changing
ride = Ride.objects.get(p_route = route.id)
to
ride = Ride.objects.get(p_route = route)
Source:stackexchange.com
1👍
I think you have an error in your code.
Try changing
ride = Ride.objects.get(p_route = route.id)
to
ride = Ride.objects.get(p_route = route)