title: How to allow for complex URLs on a Django-rest-framework viewset
body: <p>I have a <code>Scheme</code> viewset, with a detail route called <code>optimize</code>.  The definition looks like this:</p>
  
  <pre><code>@detail_route(methods=['get’])        
  def optimize(self, request, pk=None):
      pass
  </code></pre>
  
  <p>I’m using the <code>DefaultRouter()</code> to generate the URL, which ends up being <code>/schemes/:id/optimize</code>.  I want to have a 2nd method on my viewset that runs optimize on a specific location, so the url might look like <code>/schemes/:id/optimize_by_location/:id</code>.  </p>
  
  <p>How do I set up this function in my views, where there are 2 levels to the route?</p>