Skip to content
Prev Previous commit
Next Next commit
Store initkwargs on views. Closes #4467.
  • Loading branch information
lovelydinosaur committed Sep 30, 2016
commit c82bafd2bfcdc9a4aad6c775b660ce4755be6c22
1 change: 1 addition & 0 deletions rest_framework/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def force_evaluation():

view = super(APIView, cls).as_view(**initkwargs)
view.cls = cls
view.initkwargs = initkwargs

# Note: session based authentication is explicitly CSRF validated,
# all other authentication is CSRF exempt.
Expand Down