{{{
File "/home/runner/work/django-axes/django-
axes/.tox/pypy38-djmain/lib/pypy3.8/site-
packages/django/contrib/auth/admin.py", line 29, in <module>
class GroupAdmin(admin.ModelAdmin):
File "/home/runner/work/django-axes/django-
axes/.tox/pypy38-djmain/lib/pypy3.8/site-
packages/django/contrib/admin/decorators.py", line 102, in
_model_admin_wrapper
raise ValueError("site must subclass AdminSite")
ValueError: site must subclass AdminSite
}}}
It seems the error comes from
[https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/contrib/admin/decorators.py#L101
register decorator]
I've checked it and found this introduced after
https://github.com/django/django/commit/97d7990abde3fe4b525ae83958fd0b52d6a1d13f
It seems the `if not isinstance(admin_site, AdminSite):` returns `False`
after this change.
--
Ticket URL: <https://code.djangoproject.com/ticket/33889>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.