Changes between Version 2 and Version 3 of Ticket #28550, comment 4


Ignore:
Timestamp:
Aug 31, 2017, 5:12:24 PM (7 years ago)
Author:
Zach Liu

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`.
     1I 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`.
    22
    3 It seems that `as_view(**kwargs)` will raise Error if a key in kwargs is not in class attributes of the view class.
     3It 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
     5Also if it happens to logout(), it should happen to login() too, right?
Back to Top