title: How to display top 5 user list in Django?
body: <p>I created a system with Django. In this system, users do some analysis. I keep the information of these analyzes in a model named &quot;ApprocalProcess&quot;. How can I display the top 5 users who made the most analysis in &quot;ApprovalProcess&quot;?</p>
  <p><strong>models.py</strong></p>
  <pre><code>class ApprovalProcess(models.Model):
      id = models.AutoField(primary_key=True)
      user_id = models.ForeignKey(UserProfile, on_delete=models.CASCADE, null=True, related_name='starter')
      doc_id = models.ForeignKey(Pdf, on_delete=models.CASCADE, null=True)
      ...
      customer = models.ForeignKey(Customer, on_delete=models.CASCADE, null=True)
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>def approval_context_processor(request):
     approval_list = ApprovalProcess.objects.filter(user_id__company=current_user.company) 
     context = {
            'approval_list ': approval_list,
             .... 
      }
      return context
  </code></pre>