ouhft / COPE

Project Repository for Work Package 4 of the COPE Transplant Trial
https://cope.nds.ox.ac.uk
1 stars 0 forks source link

Transplantation form throws AttributeError on current version of DAL and Django #287

Closed marshalc closed 7 years ago

marshalc commented 7 years ago
AttributeError at /en-gb/wp4/compare/transplantation/358/
'list' object has no attribute 'queryset'
Request Method: GET
Request URL:    http://localhost:8000/en-gb/wp4/compare/transplantation/358/
Django Version: 1.11.1
Exception Type: AttributeError
Exception Value:    
'list' object has no attribute 'queryset'
Exception Location: /Users/carl/Projects/py3_cope/lib/python3.5/site-packages/dal/widgets.py in filter_choices_to_render, line 182
Python Executable:  /Users/carl/Projects/py3_cope/bin/python
Python Version: 3.5.1
Python Path:    
['/Users/carl/Projects/py3_cope/cope_repo',
 '/Users/carl/.virtualenvs/py3_cope/src/django-crispy-forms',
 '/Users/carl/Projects/py3_cope/cope_repo',
 '/Users/carl/Projects/py3_cope',
 '/Users/carl/Projects/py3_cope/lib/python35.zip',
 '/Users/carl/Projects/py3_cope/lib/python3.5',
 '/Users/carl/Projects/py3_cope/lib/python3.5/plat-darwin',
 '/Users/carl/Projects/py3_cope/lib/python3.5/lib-dynload',
 '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5',
 '/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin',
 '/Users/carl/Projects/py3_cope/lib/python3.5/site-packages']
Server time:    Wed, 24 May 2017 16:15:52 +0100

This is something I've seen come up after the recent DAL updates that invalidates the previous work done to speed up form loading...

AllyBradley commented 7 years ago

Can you fix it?

On 25 May 2017 at 11:42, Carl Marshall notifications@github.com wrote:

''' AttributeError at /en-gb/wp4/compare/transplantation/358/ 'list' object has no attribute 'queryset' Request Method: GET Request URL: http://localhost:8000/en-gb/wp4/compare/transplantation/358/ Django Version: 1.11.1 Exception Type: AttributeError Exception Value: 'list' object has no attribute 'queryset' Exception Location: /Users/carl/Projects/py3_cope/ lib/python3.5/site-packages/dal/widgets.py in filter_choices_to_render, line 182 Python Executable: /Users/carl/Projects/py3_cope/bin/python Python Version: 3.5.1 Python Path: ['/Users/carl/Projects/py3_cope/cope_repo', '/Users/carl/.virtualenvs/py3_cope/src/django-crispy-forms', '/Users/carl/Projects/py3_cope/cope_repo', '/Users/carl/Projects/py3_cope', '/Users/carl/Projects/py3_cope/lib/python35.zip', '/Users/carl/Projects/py3_cope/lib/python3.5', '/Users/carl/Projects/py3_cope/lib/python3.5/plat-darwin', '/Users/carl/Projects/py3_cope/lib/python3.5/lib-dynload', '/usr/local/Cellar/python3/3.5.1/Frameworks/Python. framework/Versions/3.5/lib/python3.5', '/usr/local/Cellar/python3/3.5.1/Frameworks/Python. framework/Versions/3.5/lib/python3.5/plat-darwin', '/Users/carl/Projects/py3_cope/lib/python3.5/site-packages'] Server time: Wed, 24 May 2017 16:15:52 +0100 '''

This is something I've seen come up after the recent DAL updates that invalidates the previous work done to speed up form loading...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AllyBradley/COPE/issues/287, or mute the thread https://github.com/notifications/unsubscribe-auth/AKsT0aV9gBMOLtSX-ae8iEBkEN2lvxv8ks5r9VstgaJpZM4NmO7s .

marshalc commented 7 years ago

Working on it presently as it's obviously essential to the data management work