django1/django/contrib
Aymeric Augustin 5fcd9b8c33 Unified LoginView/LogoutView.get_default_redirect_url() methods.
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.
2022-04-20 10:04:29 +02:00
..
admin Fixed #11803 -- Allowed admin select widgets to display new related objects. 2022-04-15 07:46:37 +02:00
admindocs Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
auth Unified LoginView/LogoutView.get_default_redirect_url() methods. 2022-04-20 10:04:29 +02:00
contenttypes Removed unnecessary _connector from Q construction in get_for_models(). 2022-03-15 16:13:28 +01:00
flatpages Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
gis Fixed #33637 -- Improved initial zoom level in MapWidget. 2022-04-14 11:50:31 +02:00
humanize Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
messages Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
postgres Fixed #33607 -- Made PostgresIndex.create_sql() respect the "using" argument. 2022-04-15 22:00:28 +02:00
redirects Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
sessions Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
sitemaps Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
sites Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
staticfiles Refs #33446 -- Allowed variable whitespace in CSS source map references. 2022-03-04 06:22:28 +01:00
syndication Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
__init__.py