Changes between Version 2 and Version 3 of Ticket #28550, comment 4
- Timestamp:
- Aug 31, 2017, 5:12:24 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28550, comment 4
v2 v3 1 I understand that `template_name`need to be included in `**kwargs` that is passed to `as_view()`, not sure about others in `*arg`.1 I understand that template_name (along with authentication_form, redirect_field_name, redirect_authenticated_user, extra_context) need to be included in `**kwargs` that is passed to `as_view()`, not sure about others in `*arg`. 2 2 3 It seems that `as_view(**kwargs)` will raise Error if a key in kwargs is not in class attributes of the view class. 3 It seems that `as_view(**kwargs)` will raise Error if a key in kwargs is not in class attributes of the view class. So I guess I need only find those arguments and add them to **kwargs in LogoutView.as_view()? 4 5 Also if it happens to logout(), it should happen to login() too, right?