title: django how to get request object (url param) in class based view
body: <p>I have a class based view which has a query set like below:</p>
  
  <pre><code>def get_queryset(self):  
          queryset = Article.objects.all()
          return queryset
  </code></pre>
  
  <p>If I pass an article id as a URL parameter like this:
  <code>&lt;url&gt;/stories/?articleid=1000</code></p>
  
  <p>Then how can I get this value in the get_queryset function so that I can use it to filter? something like below:</p>
  
  <pre><code>def get_queryset(self):  
          articleId = #get the article_id from URL. How to do this?
          queryset = Article.objects.filter(article_id=articleId)
          return queryset
  </code></pre>
  
  <p>Any help is appreciated.</p>