Permalink
Browse files

[1.6.x] Fixed reference to pk in RedirectView.get_redirect_url doc.

Backport of d9f78d5 from master
  • Loading branch information...
1 parent 21853c1 commit 24e97add3101258f0af363ecba9d14dd2ca51478 @bartek bartek committed with timgraham Jul 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/class-based-views/base.txt
@@ -192,7 +192,7 @@ RedirectView
pattern_name = 'article-detail'
def get_redirect_url(self, *args, **kwargs):
- article = get_object_or_404(Article, pk=pk)
+ article = get_object_or_404(Article, pk=kwargs['pk'])
article.update_counter()
return super(ArticleCounterRedirectView, self).get_redirect_url(*args, **kwargs)

0 comments on commit 24e97ad

Please sign in to comment.