title: How can i use custom function in class based views
body: <p>I have this view</p>
  
  <pre><code>class UserView(GenericAPIView):
      def get(self, request, format=None, **kwargs):
          pass
  
      def post(self, request, format=None, **kwargs):
          pass
  </code></pre>
  
  <p>This works fine with this url</p>
  
  <pre><code>url(r'^user$', UserView.as_view(),name='user'),
  </code></pre>
  
  <p>but i want  to have custom url</p>
  
  <pre><code>def  custom():
        pass
  </code></pre>
  
  <p>I want that </p>
  
  <pre><code>url(r'^user/custom/$', UserView.as_view(custom),name='user'),
  </code></pre>
  
  <p>How can i do that</p>