8👍
✅
.latest()
returns the actual object, not queryset.
So you try to call values on your model object, which it does not have.
Swap the order:
model.objects.filter(RunId__in = RunIds).values().latest()
Source:stackexchange.com