From cc5804bcab9e410a2c0fc2225fd0233bf8db0511 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 17 Mar 2014 11:58:34 -0400 Subject: [PATCH] Amended login required mixin documentation to honor **initkwargs. --- docs/topics/class-based-views/intro.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt index c307fc603d..dbd7a83a31 100644 --- a/docs/topics/class-based-views/intro.txt +++ b/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