query first 5 element in django

Solutions on MaxInterview for query first 5 element in django by the best coders in the world

showing results for - "query first 5 element in django"
Christi
30 Jul 2017
1Employer.objects.values('id').annotate(jobtitle_count=Count('jobtitle')).order_by('-jobtitle_count')[:5]