From a9d4a3fcb077fbff7066864f53057feee3d0d69f Mon Sep 17 00:00:00 2001 From: Hridesh MG <81355180+hrideshmg@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:22:10 +0530 Subject: [PATCH] docs: use python3 syntax for super() --- docs/auth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/auth.md b/docs/auth.md index 8e81c01f..79b4efec 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -90,7 +90,7 @@ class LoginView(KnoxLoginView): serializer.is_valid(raise_exception=True) user = serializer.validated_data['user'] login(request, user) - return super(LoginView, self).post(request, format=None) + return super().post(request, format=None) ``` **urls.py:** @@ -103,4 +103,4 @@ urlpatterns = [ path(r'logout/', knox_views.LogoutView.as_view(), name='knox_logout'), path(r'logoutall/', knox_views.LogoutAllView.as_view(), name='knox_logoutall'), ] -``` \ No newline at end of file +```