title: Django REST API: Queryset with arguments
body: <p>folks: I am trying to get the details of an entry in the database table through Django REST Framework with "url arguments" I am using the following code to get the value of "symbol" parameter however, I am getting the runtime error on the command line related to <code>base_name</code>. Here is the detail of my code: </p>
  
  <pre><code>class ticker_detail_full_view(viewsets.ModelViewSet):
      serializer_class = ticker_detail_full
  
      def get_queryset(self):
          ticker = self.kwargs['symbol']
          return ticker.objects.filter(symbol = ticker)
  </code></pre>
  
  <p>url: <a href="http://localhost:8000/qres/ticker_detail_full/?symbol=AMZN" rel="nofollow noreferrer">http://localhost:8000/qres/ticker_detail_full/?symbol=AMZN</a> </p>
  
  <p>I am getting the following error on the Django command-line: </p>
  
  <pre><code>router.register('ticker_detail_full', views.ticker_detail_full_view)
  </code></pre>
  
  <blockquote>
    <p>File
    "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rest_framework/routers.py",
    line 82, in register
        base_name = self.get_default_base_name(viewset)</p>
    
    <p>File
    "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rest_framework/routers.py",
    line 161, in get_default_base_name
        assert queryset is not None, '<code>base_name</code> argument not specified, and could ' \</p>
    
    <p>AssertionError: <code>base_name</code> argument not specified, and could not
    automatically determine the name from the viewset, as it does not have
    a <code>.queryset</code> attribute.</p>
  </blockquote>