Report question

Question: how to get the first element and the last element using django , Location.objects.all()