Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed reference to pk in RedirectView.get_redirect_url doc.

  • Loading branch information...
commit d9f78d5344c26b3da7461e19b6f59806dc9d70cd 1 parent 145d231
@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
@@ -186,7 +186,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.