Closed marshalc closed 7 years ago
That's Home -> Administration -> Staff (https://cope.nds.ox.ac.uk/en-gb/wp4/staff/)
For my reference, this is related to the ISEs such as:
Internal Server Error: /nl-nl/wp4/compare/transplantation/
MissingUserLocation at /nl-nl/wp4/compare/transplantation/
ObjectManager.get_queryset current user has no location set in profile
Request Method: GET
Request URL: https://cope.nds.ox.ac.uk/nl-nl/wp4/compare/transplantation/
Django Version: 1.10.6
Python Executable: /sites/.virtualenvs/py3_cope/bin/python3
Python Version: 3.5.2
Python Path: ['/sites/py3_cope/cope_repo', '/sites/.virtualenvs/py3_cope/bin', '/sites/py3_cope/cope_repo/${PYTHONPATH}', '/sites/py3_cope/cope_repo', '/sites/.virtualenvs/py3_cope/lib/python35.zip', '/sites/.virtualenvs/py3_cope/lib/python3.5', '/sites/.virtualenvs/py3_cope/lib/python3.5/plat-x86_64-linux-gnu', '/sites/.virtualenvs/py3_cope/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages', '/sites/.virtualenvs/py3_cope/src/django-crispy-forms']
Server time: don, 23 Mrt 2017 14:28:11 +0100
Installed Applications:
['dal',
'dal_select2',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django.contrib.admin',
'django.contrib.admindocs',
'crispy_forms',
'reversion',
'reversion_compare',
'wp4.compare',
'wp4.locations',
'wp4.staff',
'wp4.perfusion_machine',
'wp4.health_economics',
'wp4.samples',
'wp4.adverse_event',
'wp4.followups',
'wp4.administration',
'wp4.theme',
'djangosecure',
'gunicorn']
Installed Middleware:
['djangosecure.middleware.SecurityMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'reversion.middleware.RevisionMiddleware',
'config.middleware.activate_timezone.TimezoneMiddleware']
Traceback:
File "/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/sites/.virtualenvs/py3_cope/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/sites/py3_cope/cope_repo/wp4/compare/views.py" in transplantation_list
401. existing_cases = Organ.open_objects.for_user(current_person).\
File "/sites/py3_cope/cope_repo/wp4/compare/managers/core.py" in for_user
52. "ObjectManager.get_queryset current user has no location set in profile"
Exception Type: MissingUserLocation at /nl-nl/wp4/compare/transplantation/
Exception Value: ObjectManager.get_queryset current user has no location set in profile
Request information:
USER: Sabine Plag
Dear all, as I was afraid of, I made a mistake when entering the TTs from Leiden. I've now assigned them all to their hub. The problems as Sabine Plag had should now be over.
Data clean up task for @mertenssarah @aukjebrat & @AllyBradley . There are a number of users (perfusion technicians in particular) lacking complete information (such as their base hospital) which is causing them to see errors now in the system (welcome to the joys of increased permission checking and geographic restrictions).
Please can you go through the Staff listings and ensure all users have a valid: Based At, and Email (and that their name is correctly spelt too).
E.g. for Sabine Plag, who's been experiencing issues today, you can edit at https://cope.nds.ox.ac.uk/en-gb/wp4/staff/185/ and then save.
I'll leave it as a task for you to divide amongst yourselves.
Thank you (on behalf of your users) :-)