title: How to implement DjangoModelPermissions for the class based APIView? It throws Queryset error
body: <p><strong>Scenario:</strong> I have group and permissions, permissions associated to group and that very group is associated to the user. Now I am trying to implement the permissions to the views through <strong>DjangoModelPermissions</strong></p>
  <p>This works fine for the following code lines where <strong>queryset</strong> is implemented;</p>
  <pre><code>class UpdateCampaignView(generics.UpdateAPIView):
      authentication_classes = [TokenAuthentication]
      permission_classes = [DjangoModelPermissions]
  
      queryset = Campaign.objects.all()
      serializer_class = UpdateCampaignSerializer
  
      def get_object(self):
          campaign_id = self.request.data.get(&quot;id&quot;)
          return Campaign.objects.get(id =campaign_id)
  </code></pre>
  <p>But I want to implement this to <strong>class based APIView</strong> without queryset keyword something like this:</p>
  <pre><code>class RetrieveCampaignView(APIView):
      authentication_classes = [TokenAuthentication]
      permission_classes = [DjangoModelPermissions] #this is what i want to do
      
      def get(self, request, *args, **kwargs):
          try:
              campaign = Campaign.objects.get(id = request.data.get(&quot;id&quot;))
              searializer = GetCampaignSerializer(campaign)
              return Response({&quot;status&quot;:True , &quot;payload&quot;:searializer.data})
          
          except:
              return Response({&quot;status&quot;:False}, status=status.HTTP_404_NOT_FOUND)
  </code></pre>
  <p><strong>But This Gives following Error:</strong></p>
  <p><em><strong>django rest framework error Cannot apply DjangoModelPermissions on a view that does not set <code>.queryset</code> or have a <code>.get_queryset()</code> method</strong></em></p>