Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Backport of d9f78d5 from master
  • Loading branch information...
commit 24e97add3101258f0af363ecba9d14dd2ca51478 1 parent 21853c1
@bartek bartek authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/class-based-views/base.txt
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.