title: Django REST Framework - pass extra parameter to actions
body: <p>I'm using <code>Django 2.0</code> and <code>Django REST Framework</code></p>
  
  <p>I have created an action method to delete particular object from database</p>
  
  <p><strong>contacts/views.py</strong></p>
  
  <pre><code>class ContactViewSet(viewsets.ModelViewSet):
      serializer_class = ContactSerializer
      permission_classes = (IsAuthenticated, AdminAuthenticationPermission,)
  
      # others actions goes here
  
      @action(methods=['delete'], detail=False, url_path='delete_phone/&lt;phone_pk&gt;/')
      def delete_phone(self, request, pk=None):
          contact = self.get_object()
          print(contact)
          print(pk)
          print(self.kwargs['phone_pk'])
          return Response({'status': 'success'})
  </code></pre>
  
  <p><strong>apps/urls.py</strong></p>
  
  <pre><code>router.register(r'contacts', ContactViewSet, 'contacts')
  
  api_urlpatterns = [
      path('', include(router.urls)),
  ]
  </code></pre>
  
  <p>But when I access </p>
  
  <pre><code>DELETE: http://url/api/contacts/delete_phone/1/
  </code></pre>
  
  <p><strong>It gives <code>page not found</code> error.</strong></p>
  
  <p>In the error page, there is listing in <em>tried url patterns</em></p>
  
  <pre><code>api/ ^contacts/delete_phone/&lt;phone_pk&gt;//$ [name='contacts-delete-phone']
  api/ ^contacts/delete_phone/&lt;phone_pk&gt;\.(?P&lt;format&gt;[a-z0-9]+)/?$ [name='contacts-delete-phone']
  </code></pre>