title: How to limit query within Django Admin.TabularInline with large scale data
body: <p>I'm currently loading 50k records of data using <code>admin.TabularInline</code>, the page doesn't load due to time-out. I'm using Django version 1.9 and upgrade is not an option.</p>
  
  <p>I have already tried overriding the get_queryset to return only 10 records.</p>
  
  <pre class="lang-py prettyprint-override"><code>class RemDetailInline(admin.TabularInline):
      model = RemDetail
      fields = ('rem_name', 'ben_name', 'payout_amount', 
                'payout_currency', 'status','type', 'date_created')
      readonly_fields = ('rem_name', 'ben_name', 'payout_amount', 
                         'payout_currency', 'status', 'type', 'date_created')
      extra = 0
      max_num = 0
      show_change_link = True
      ordering = ['-date_created',]
  
      def get_queryset(self, request):
          queryset = super(RemDetailInline, self).get_queryset(request)
          ids = queryset.order_by('-id').values('pk')[:10] # limit 10
          qs = RemDetailInline.objects.filter(pk__in=ids).order_by('-id')
          return qs
  </code></pre>
  
  <p>I expect the output to return 10 records, instead the page timesout due to the high volume (50k records)</p>