title: django Rest Framework - ViewSet with custom list view and URL parameter
body: <p>I have the following setup:</p>
  
  <p>I want to list all holidays of a specific year. That's why I leave out the default list view and implement my own like this:</p>
  
  <pre><code>class HolidayViewSet(mixins.RetrieveModelMixin, GenericViewSet):
  @list_route()
  def year(self, request, year=get_today().year):
      public_holidays = self.get_queryset().filter(date__year=year)
      page = self.paginate_queryset(public_holidays)
      if page is not None:
          serializer = self.get_serializer(page, many=True)
          return self.get_paginated_response(serializer.data)
      serializer = self.get_serializer(public_holidays, many=True)
      return Response(serializer.data)
  </code></pre>
  
  <p>If I use the default /holiday/year/ I get a result for the current year.</p>
  
  <p>But whe I try to pass a parameter, I'll get a 404. The 404 page (in debug mode) even shows me the correct URL pattern:</p>
  
  <pre><code>api/v1/ ^holiday/year/$ [name='holiday-year']
  api/v1/ ^holiday/year\.(?P&lt;format&gt;[a-z0-9]+)/?$ [name='holiday-year']
  </code></pre>
  
  <p>In the <a href="http://www.tomchristie.com/rest-framework-2-docs/api-guide/viewsets" rel="nofollow noreferrer">documentation</a> this aspect is unfortunately not covered.</p>
  
  <p>Any ideas why my route to <code>holiday/year/2017</code> is not working?</p>
  
  <p>Thanks!
  Ron</p>