TypeError at /account/login/

django Exception Published at March 8, 2025, 4:29 p.m. by admin@senrigan.org

ログインできない。

TypeError at /account/login/
argument of type 'NoneType' is not iterable
Request Method: POST
Request URL:    http://127.0.0.1:8000/account/login/
Django Version: 5.1.6
Exception Type: TypeError
Exception Value:    
argument of type 'NoneType' is not iterable
Exception Location: /workspace/senrigan/.venv/lib/python3.12/site-packages/django/shortcuts.py, line 186, in resolve_url
Raised during:  account.views.CustomLoginView

OwnerMixinはOwnerCourseMixinの基底クラスで、子すっ飛ばして親を直接継承しようとしていた。

-class ManageCourseListView(OwnerMixin, ListView):
+class ManageCourseListView(OwnerCourseMixin, ListView):