A coordinator (who isn't a superuser) got the following server error today on /applications/list:
Traceback: File "/venv/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/venv/lib/python3.8/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "/venv/lib/python3.8/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/app/TWLight/view_mixins.py" in dispatch 109. if not self.test_func_coordinators_only(request.user): File "/app/TWLight/view_mixins.py" in test_func_coordinators_only 106. return user.is_superuser or user in coordinators.user_set.all() Exception Type: AttributeError at /applications/list/ Exception Value: 'NoneType' object has no attribute 'user_set'
Navigating to this page as a superuser doesn't seem to cause a server error. I was able to open the page without issue on an account in the Coordinator group (and not a superuser). Unclear how to reproduce.