Skip to content

Commit

Permalink
Merge pull request #374 from hrideshmg/patch-1
Browse files Browse the repository at this point in the history
Use python3 syntax for super()
  • Loading branch information
giovannicimolin authored Jan 21, 2025
2 parents 4651b6a + a9d4a3f commit a6acce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand All @@ -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'),
]
```
```

0 comments on commit a6acce8

Please sign in to comment.