title: Getting Multiple Objects using Django rest_framework RetrieveAPIView
body: <p>Currently I have this class inside my shop's view.py</p>
  <pre><code>class ShopDetailAPIView(RetrieveAPIView):
  
      queryset = Shop.objects.all()
      serializer_class = ShopDetailSerializer
      lookup_field = 'Suburb'
      permission_classes = [IsAuthenticated]
  </code></pre>
  <p>And my shop's urls.py which displays this specific api:</p>
  <pre><code>urlpatterns = [
  
      url(r'^$', ShopListAPIView.as_view(), name = 'list' ),
      url(r'^(?P&lt;Suburb&gt;\w+)/$', ShopDetailAPIView.as_view(), name = 'detail'),
  ]
  </code></pre>
  <p>The aim of the <code>ShopDetailAPIView</code> class is to display a filtered version of the data stored inside the database. So that if a user enters</p>
  <pre><code> http://example.com/shop/locationname
  </code></pre>
  <p>The link will display Django Rest Framework API according to the location.</p>
  <p>The problem I am facing is that when there are more than one objects, the page returns:</p>
  <pre><code>get() returned more than one Shop -- it returned 3!
  </code></pre>
  <p>I think my solution is to change my <code>queryset</code> to</p>
  <pre><code>queryset = Shop.Objects.filter(Suburb = suburb)
  </code></pre>
  <p>However I have no idea how to implement this using <code>RetrieveAPIView</code>.</p>
  <p>I know there are alternatives such as <code>django-filter</code> which would work perfectly in this situation. However is there any way to implement my code above to show more than 3 objects?</p>
  <p>Thank you</p>