title: Get an url pk in a generic RESTful view?
body: <p>I'm trying to manage my REST API like that :</p>
  <pre><code>http://xxx/users/userid[0-9]+/projects/projectid[0-9]+/tasks/taskid[0-9]+/
  </code></pre>
  <p>So I can access the JSON easily in my website. But, the thing is, I defined my view classes using the REST framework generic views. For example, here is my UserDetail view :</p>
  <pre><code>class UserDetail(generics.RetrieveUpdateDestroyAPIView):
      queryset = User.objects.all()
      serializer_class = UserSerializer
  </code></pre>
  <p>But of course I don't want all my users to be displayed, I just want my user with the ID userid to be displayed. I don't really know how to do it, I tried</p>
  <pre><code>queryset = User.objects.filter(id=userid)
  </code></pre>
  <p>but of course userid is not defined... Any help please ?</p>
  <p>Edit : just to clarify, here is the url that leads to this view :</p>
  <pre><code>url(r'^users/(?P&lt;pku&gt;[0-9]+)/$', views.UserDetail.as_view(
                     ), name='user-detail'),
  </code></pre>