mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Use python3 style super() in 2FA code paths.
This commit is contained in:
committed by
Tim Abbott
parent
6111b4ebd0
commit
0335da7e05
@@ -564,7 +564,7 @@ class TwoFactorLoginView(BaseTwoFactorLoginView):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
|
||||
context = super(TwoFactorLoginView, self).get_context_data(**kwargs)
|
||||
context = super().get_context_data(**kwargs)
|
||||
if self.extra_context is not None:
|
||||
context.update(self.extra_context)
|
||||
update_login_page_context(self.request, context)
|
||||
|
||||
@@ -488,7 +488,7 @@ ALLOWED_HOSTS += REALM_HOSTS.values()
|
||||
from django.template.loaders import app_directories
|
||||
class TwoFactorLoader(app_directories.Loader):
|
||||
def get_dirs(self):
|
||||
dirs = super(TwoFactorLoader, self).get_dirs()
|
||||
dirs = super().get_dirs()
|
||||
return [d for d in dirs if 'two_factor' in d]
|
||||
|
||||
MIDDLEWARE = (
|
||||
|
||||
Reference in New Issue
Block a user