I tried out the offline randomisation (I picked a European Case) as displayed in the test environment and came up with the following Error when clicking 'start new case' (see screen shots and copy-paste below).
@mertenssarah - Sarah, I believe TTs now call you to randomise for them when they are offline, correct?
therefore, I am not sure how much of an issue this Error is but @marshalc I would appreciate Carls input to make sure we are capturing all randomisations and Trial IDs of kidneys coming from randomisations.
I tried out the offline randomisation (I picked a European Case) as displayed in the test environment and came up with the following Error when clicking 'start new case' (see screen shots and copy-paste below).
@mertenssarah - Sarah, I believe TTs now call you to randomise for them when they are offline, correct?
therefore, I am not sure how much of an issue this Error is but @marshalc I would appreciate Carls input to make sure we are capturing all randomisations and Trial IDs of kidneys coming from randomisations.
Environment:
Request Method: POST Request URL: https://wp4.cm13.net/en-gb/wp4/compare/procurement/
Django Version: 1.10.2 Python Version: 3.5.2 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_person', 'wp4.perfusion_machine', 'wp4.health_economics', 'wp4.samples', 'wp4.adverse_event', 'wp4.followups', 'wp4.theme', 'djangosecure'] 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 "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/core/handlers/base.py" in _legacy_get_response
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "/home/cm13/webapps/wp4_django_py3/cope_repo/wp4/compare/views.py" in procurement_list
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/forms/forms.py" in is_valid
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/forms/forms.py" in errors
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/forms/forms.py" in full_clean
File "/home/cm13/webapps/wp4_django_py3/lib/python3.5/site-packages/django/forms/forms.py" in _clean_form
File "/home/cm13/webapps/wp4_django_py3/cope_repo/wp4/compare/forms/core.py" in clean
File "/home/cm13/webapps/wp4_django_py3/cope_repo/wp4/compare/models/core.py" in get_randomisation_list
Exception Type: AttributeError at /en-gb/wp4/compare/procurement/ Exception Value: 'RetrievalTeam' object has no attribute 'UNITED_KINGDOM'