Skip to content
Snippets Groups Projects
Verified Commit 56073272 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix code style

parent 8ad6ab81
No related branches found
No related tags found
1 merge request!413Resolve "User registration"
Pipeline #12460 passed
......@@ -22,7 +22,11 @@ urlpatterns = [
path(settings.MEDIA_URL.removeprefix("/"), include("titofisto.urls")),
path("about/", views.about, name="about_aleksis"),
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
path("accounts/password/change/", views.CustomPasswordChangeView.as_view(), name="account_change_password"),
path(
"accounts/password/change/",
views.CustomPasswordChangeView.as_view(),
name="account_change_password",
),
path("accounts/", include("allauth.urls")),
path(
"accounts/social/connections/<int:pk>/delete",
......
......@@ -1112,7 +1112,7 @@ class CustomPasswordChangeView(PermissionRequiredMixin, PasswordChangeView):
class SocialAccountDeleteView(DeleteView):
"""Custom view to delete django-allauth social account"""
"""Custom view to delete django-allauth social account."""
template_name = "core/pages/delete.html"
success_url = reverse_lazy("socialaccount_connections")
......@@ -1131,7 +1131,8 @@ class SocialAccountDeleteView(DeleteView):
messages.error(
self.request,
_(
"The social account could not be disconnected because it is the only login method available."
"The social account could not be disconnected "
"because it is the only login method available."
),
)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment