title: Django Rest Framework pagination and filtering
body: <p>Hi guys i am trying to make filtering with pagination but i cannot get the result i want.</p>
  <p>This is my function in views.py.</p>
  <pre><code>class OyunlarList(generics.ListAPIView):
      # queryset = Oyunlar.objects.all()
      pagination_class = StandardPagesPagination
      filter_backends = [DjangoFilterBackend]
      filterset_fields = ['categories__name', 'platform']
      # serializer_class = OyunlarSerializer
      def get_queryset(self):
          queryset=Oyunlar.objects.all()
          oyunlar=OyunlarSerializer.setup_eager_loading(queryset)
  
          return oyunlar
      def get(self,request,*args,**kwargs):
          queryset = self.get_queryset()
          serializer=OyunlarSerializer(queryset,many=True)
          page=self.paginate_queryset(serializer.data)
          return self.get_paginated_response(page)
  </code></pre>
  <p>This is my pagination class.</p>
  <pre><code>class StandardPagesPagination(PageNumberPagination):
        page_size = 10
  </code></pre>
  <p>And this is the json i got but when i write localhost/api/games?platform=pc or localhost/api/games?categories=Action it is not working.</p>
  <pre><code>{
      &quot;count&quot;: 18105,
      &quot;next&quot;: &quot;http://127.0.0.1:8000/api/oyunlar?categories__name=&amp;page=2&amp;platform=pc&quot;,
      &quot;previous&quot;: null,
      &quot;results&quot;: [
          {
              &quot;game_id&quot;: 3,
              &quot;title&quot;: &quot;The Savior's Gang&quot;,
              &quot;platform&quot;: &quot;ps4&quot;,
              &quot;image&quot;: &quot;https://store.playstation.com/store/api/chihiro/00_09_000/container/TR/en/999/EP3729-CUSA23817_00-THESAVIORSGANG00/1599234859000/image?w=240&amp;h=240&amp;bg_color=000000&amp;opacity=100&amp;_version=00_09_000&quot;,
              &quot;categories&quot;: [],
              &quot;release_date&quot;: null
          },
          {
              &quot;game_id&quot;: 8,
              &quot;title&quot;: &quot;Spellbreak&quot;,
              &quot;platform&quot;: &quot;ps4&quot;,
              &quot;image&quot;: &quot;https://store.playstation.com/store/api/chihiro/00_09_000/container/TR/en/999/EP0795-CUSA18527_00-SPELLBREAK000000/1599612713000/image?w=240&amp;h=240&amp;bg_color=000000&amp;opacity=100&amp;_version=00_09_000&quot;,
              &quot;categories&quot;: [],
              &quot;release_date&quot;: null
          },
          {
              &quot;game_id&quot;: 11,
              &quot;title&quot;: &quot;Marvel's Avengers&quot;,
              &quot;platform&quot;: &quot;ps4&quot;,
              &quot;image&quot;: &quot;https://store.playstation.com/store/api/chihiro/00_09_000/container/TR/en/999/EP0082-CUSA14030_00-BASEGAME0001SIEE/1599653581000/image?w=240&amp;h=240&amp;bg_color=000000&amp;opacity=100&amp;_version=00_09_000&quot;,
              &quot;categories&quot;: [],
              &quot;release_date&quot;: null
          },
          {
              &quot;game_id&quot;: 24,
              &quot;title&quot;: &quot;The Suicide of Rachel Foster&quot;,
              &quot;platform&quot;: &quot;ps4&quot;,
              &quot;image&quot;: &quot;https://store.playstation.com/store/api/chihiro/00_09_000/container/TR/en/999/EP8923-CUSA19152_00-DAEEUTSORF000001/1599610166000/image?w=240&amp;h=240&amp;bg_color=000000&amp;opacity=100&amp;_version=00_09_000&quot;,
              &quot;categories&quot;: [
                  {
                      &quot;category_id&quot;: 2,
                      &quot;name&quot;: &quot;Casual&quot;
                  },
                  {
                      &quot;category_id&quot;: 5,
                      &quot;name&quot;: &quot;İndie&quot;
                  },
                  {
                      &quot;category_id&quot;: 8,
                      &quot;name&quot;: &quot;Adventure&quot;
                  }
              ],
              &quot;release_date&quot;: &quot;2020-09-09&quot;
          },
          {
              &quot;game_id&quot;: 25,
              &quot;title&quot;: &quot;Takotan&quot;,
              &quot;platform&quot;: &quot;ps4&quot;,
              &quot;image&quot;: &quot;https://store.playstation.com/store/api/chihiro/00_09_000/container/TR/en/999/EP2005-CUSA24716_00-TKTN000000000000/1599610166000/image?w=240&amp;h=240&amp;bg_color=000000&amp;opacity=100&amp;_version=00_09_000&quot;,
              &quot;categories&quot;: [
                  {
                      &quot;category_id&quot;: 1,
                      &quot;name&quot;: &quot;Action&quot;
                  },
                  {
                      &quot;category_id&quot;: 12,
                      &quot;name&quot;: &quot;Arcade&quot;
                  },
                  {
                      &quot;category_id&quot;: 13,
                      &quot;name&quot;: &quot;Shooter&quot;
                  }
              ],
              &quot;release_date&quot;: &quot;2020-09-09&quot;...
  </code></pre>
  <p>Can you help me guys with this problem?I couldn't find any solution.</p>