Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

adminで参加者ユーザでしか見れないURL見ると500が返ってくる #51

Open
sharknasuhorse opened this issue Oct 6, 2019 · 1 comment

Comments

@sharknasuhorse
Copy link
Member

ictsc-adminで /pstate/user/team/ を見ると500が返ってくる

404にしたほうがいい

@tar-xzvff
Copy link
Contributor

10.32.0.4 - - [06/Oct/2019:08:28:59 +0000] "POST /pstate/auth/login/?next=/pstate/user/team/ HTTP/1.1" 302 0 "https://prep.icttoracon.net/pstate/auth/login/?next=/pstate/user/team/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"
ERROR 2019-10-06 08:28:59,431 Internal Server Error: /pstate/user/team/
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/mixins.py", line 52, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/list.py", line 142, in get
    self.object_list = self.get_queryset()
  File "/root/pstate/views/user.py", line 159, in get_queryset
    return Team.objects.none()
UnboundLocalError: local variable 'Team' referenced before assignment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants