title: Query parameters in the URL, with REST Framework
body: <p>I, stared using REST Framework few days ago, but I, can't find how create a customized url with parameter, in Django this kind of url is written like this.</p>
  
  <pre><code>url(r'^author/(?P&lt;author&gt;\d+)/books/$', BooksList.as_view(), name = 'books'),
  </code></pre>
  
  <p>for this </p>
  
  <pre><code>http://mysite/author/1/books
  </code></pre>
  
  <p>I, try with:</p>
  
  <pre><code>router.register(r'author/(?P&lt;author&gt;\d+)/books', BooksList, base_name = 'Books')
  </code></pre>
  
  <p>but this don't work.</p>
  
  <p>I, see this questions but, don't work:
  <a href="https://stackoverflow.com/questions/18194603/django-rest-custom-url-in-a-modelviewset?rq=1">question 1</a>
  <a href="https://stackoverflow.com/questions/18156291/django-rest-framework-and-custom-routes">question 2</a></p>
  
  <p>This is my code.</p>
  
  <pre><code># models.py
  class Author(models.Model):
      Name = models.CharField(max_length = 50)
  
  class Book(models.Model):
      Book = models.ForeignKey(Author)
      Title = models.CharField(max_length = 200)
  
      def __unicode__(self):
          return self.Title
  
  
  # views.py
  class BooksList(viewsets.ModelViewSet):
      model = Book
      serializer_class = BookSerializer
      def get_queryset(self):
          author = self.kwargs['author']
          queryset = Book.objects.filter(Author = author)
          return queryset
  
  # urls.py
  router = routers.DefaultRouter()
  router.register(r'books', BooksList, base_name = 'Books')
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^api/', include('rest_framework.urls', namespace = 'rest_framework')),
  )
  </code></pre>