title: Django REST Framework generics.RetrieveUpdateDestroyAPIView return all records instead of one
body: <p>I'm new to DRF and trying to build a rest API, I have set up my models, URLs,  views, and serializers as:</p>
  
  <blockquote>
    <p>model.py:</p>
  </blockquote>
  
  <pre><code>services = (
      ('Single', 'Single'),
      ('Multiple', 'Multiple'),
  )
  
  
  class DeploymentOnUserModel(models.Model):
      deployment_name = models.CharField(max_length=256, )
      credentials = models.TextField(blank=False)
      project_name = models.CharField(max_length=150, blank=False)
      project_id = models.CharField(max_length=150, blank=True)
      cluster_name = models.CharField(max_length=256, blank=False)
      zone_region = models.CharField(max_length=150, blank=False)
      services = models.CharField(max_length=150, choices=services)
      configuration = models.TextField()
      routing = models.TextField()
  
      def save(self, **kwargs):
          if not self.id and self.services == 'Multiple' and not self.routing and not self.configuration:
              raise ValidationError("You must have to provide routing for multiple services deployment.")
          super().save(**kwargs)
  </code></pre>
  
  <blockquote>
    <p>From urls.py:</p>
  </blockquote>
  
  <pre><code>from django.urls import path, include
  # from .routers import router
  from . import apiview
  
  app_name = 'deployments'
  
  urlpatterns = [
      # path('', include(router.urls), name='deployments'),
      path('deployments/', apiview.DeploymentsList.as_view(), name='deployment-list'),
      path('deployments/&lt;int:pk&gt;/', apiview.DeploymentDetail.as_view(), name='deployment_detail')
  
  ]
  </code></pre>
  
  <blockquote>
    <p>From apiview.py:</p>
  </blockquote>
  
  <pre><code>class DeploymentDetail(generics.RetrieveUpdateDestroyAPIView):
  
      def retrieve(self, request, *args, **kwargs):
          pk = self.kwargs.get('pk')
  
          return Response(DeploymentOnUserModel.objects.get(pk=kwargs['pk']))
  </code></pre>
  
  <blockquote>
    <p>From serializers.py:</p>
  </blockquote>
  
  <pre><code>class DeploymentOnUserSerializer(serializers.ModelSerializer):
      class Meta:
          model = DeploymentOnUserModel
          fields = '__all__'
  </code></pre>
  
  <p>When I try access: <a href="http://127.0.0.1:8000/api/v1/deployments/?pk=1/" rel="nofollow noreferrer">http://127.0.0.1:8000/api/v1/deployments/?pk=1/</a> it should return a single object of <strong>id=1</strong> but it returns all objects.</p>