Reverse order in query set

Question:
=======
How can I order by descending my query set in django by date and
i just want to filter from descending all the Reserved by check_in date
?

Reserved.objects.all().filter(client=client_id).order_by('check_in')




solution:

 
Reserved.objects.all().filter(client=client_id).order_by('-check_in')

No comments:

Post a Comment