5fcd9b8c33
This might change the behavior when self.next_page == "". However, resolve_url(self.next_page) would almost certainly fail in that case. It is technically possible to define a logout URLpattern whose name is "": path('logout/', LogoutView.as_view(), name=''), and then to refer to this pattern with next_page = "". However this feels like a pathological case, so we decided not to handle it. Most checks on next_page, LOGIN_REDIRECT_URL, and LOGOUT_REDIRECT_URL are performed with boolean evaluation rather than comparison with None. That's why we standardizing that way. |
||
---|---|---|
.. | ||
admin | ||
admindocs | ||
auth | ||
contenttypes | ||
flatpages | ||
gis | ||
humanize | ||
messages | ||
postgres | ||
redirects | ||
sessions | ||
sitemaps | ||
sites | ||
staticfiles | ||
syndication | ||
__init__.py |