Store initkwargs as view class attribute

This commit is contained in:
Mikhail Podgurskiy 2016-09-05 17:05:00 +06:00
parent 5df54a711f
commit 542111a44b

View File

@ -130,6 +130,7 @@ class APIView(View):
view = super(APIView, cls).as_view(**initkwargs)
view.cls = cls
view.initkwagrs = initkwargs
# Note: session based authentication is explicitly CSRF validated,
# all other authentication is CSRF exempt.