title: "detail": "Not found." in Django rest-api
body: <p>I got the error <code>&quot;detail&quot;: &quot;Not found.&quot;</code> even though some ids still works.</p>
  <h3>model.py</h3>
  <pre class="lang-py prettyprint-override"><code>class Profile(models.Model):
  
      id = models.AutoField(primary_key=True)
      user = models.OneToOneField(User, null=True, on_delete=models.CASCADE)
      swipe = models.ForeignKey(Swipe, null=True, blank=True, on_delete=models.CASCADE)
      name = models.CharField(max_length=10)
      age = models.FloatField(blank=True, null=True)
      gender = models.CharField(blank=True, max_length=10, null=True)
      native_lan = models.CharField(max_length=20)
      foreign_lan = models.CharField(max_length=20)
      image = models.ImageField(blank=True, null=True)
      location = models.CharField(blank=True, max_length=30, null=True)
      time_start = models.TimeField(blank=True, null=True)
      time_end = models.TimeField(blank=True, null=True)
      intro = models.TextField(blank=True, null=True)
      freeday = models.CharField(blank=True, max_length=10, null=True)
  
      def __str__(self):
          return self.name
  </code></pre>
  <h3>views.py</h3>
  <pre class="lang-py prettyprint-override"><code>class MyProfileView(GenericAPIView, RetrieveModelMixin,
  CreateModelMixin, UpdateModelMixin, DestroyModelMixin, ListModelMixin):
      queryset = Profile.objects.all()
      serializer_class = ProfileSerializer
      lookup_field = 'id'
  
      def post(self, request):
          return  self.create(request)
          
      def get(self, request, id=None):
          if id:
              user = get_object_or_404(User, id=id)
              profile = get_object_or_404(Profile, user=user)
              print(profile.id)
  
              return self.retrieve(request, profile.id)
          else:
              return self.list(request)
  
      def put(self, request, id=None):
          print('REQUEST::',request.FILES)
          return self.update(request, id)
  
      def delete(self, request, id=None):
          return self.destroy(request, id)
  </code></pre>
  <h3>urls.py</h3>
  <pre class="lang-py prettyprint-override"><code>urlpatterns = [
      path('list/', MyProfileView.as_view()),
      path('create/', MyProfileView.as_view()),
      path('update/&lt;int:id&gt;/', MyProfileView.as_view()),
      path('detail/&lt;int:id&gt;/', MyProfileView.as_view()),
      path('delete/&lt;int:id&gt;/', MyProfileView.as_view()),
  ]
  </code></pre>
  <p><img src="https://i.stack.imgur.com/dYlfU.png" alt="all the profiles" /></p>
  <p>My expectation is that you get user by the id of user account and it allows you to get id of profile, finally returning the profile.</p>
  <p>But, when I put <code>id=2</code> which is the id of user account, I got <code>&quot;detail&quot;: &quot;Not found.&quot;</code> despite that I confirmed <code>profile.id=1</code> by printing it out.
  One more thing that I don't understand is when I put <code>id=3</code>, I got the profile correctly.</p>
  <p>How do I fix that?
  Thank you:)</p>