[Answered ]-Django Queryset to include and filter related data

1👍

in your template change checkin.all to checkin.last.

Also you can get rid of the for loop as well,like

In: {{ child.minor_checkin.last.checkin }}</br>
Out: {{child.minor_checkin.last.checkout}}

Leave a comment