mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-05 22:24:46 +00:00
13 lines
345 B
Python
13 lines
345 B
Python
from django import apps
|
|
|
|
|
|
class AppConfig(apps.AppConfig):
|
|
name = 'axes'
|
|
|
|
def ready(self):
|
|
from django.contrib.auth.views import LoginView
|
|
from django.utils.decorators import method_decorator
|
|
|
|
from axes.decorators import watch_login
|
|
|
|
LoginView.dispatch = method_decorator(watch_login)(LoginView.dispatch)
|