Permalink
Browse files

Amended login required mixin documentation to honor **initkwargs.

  • Loading branch information...
charettes committed Mar 17, 2014
1 parent fad4736 commit cc5804bcab9e410a2c0fc2225fd0233bf8db0511
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/topics/class-based-views/intro.txt
@@ -189,8 +189,9 @@ mixin like this::
class LoginRequiredMixin(object):
@classmethod
- def as_view(cls):
- return login_required(super(LoginRequiredMixin, cls).as_view())
+ def as_view(cls, **initkwargs):
+ view = super(LoginRequiredMixin, cls).as_view(**initkwargs)
+ return login_required(view)
class MyView(LoginRequiredMixin, ...):
# this is a generic view

0 comments on commit cc5804b

Please sign in to comment.