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 +```