You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,31 @@
7
7
### Changed
8
8
-[Breaking] Remove admin monkey patching, now you will need to explicitly use the alternate AdminSite or include the Mixin in your custom admin site implementation.
9
9
10
+
### Removed
11
+
12
+
- Admin Monkey Patching
13
+
14
+
The Admin UI will not longer be automatically patched. The `TwoFactorSiteAdmin` will need to be explicitly
15
+
configured in urls.py.
16
+
17
+
```py
18
+
# urls.py
19
+
from django.urls import path
20
+
from two_factor.admin import TwoFactorAdminSite
21
+
url_patterns = [
22
+
path('admin/', TwoFactorAdminSite().urls),
23
+
]
24
+
```
25
+
26
+
Custom admin sites can extend `TwoFactorSiteAdmin` or `TwoFactorSideAdminMixin` to inherit the behavior.
0 commit comments