Pierre-Sassoulas / django-survey

A django survey app that can export results as CSV or PDF using your native language.
GNU Affero General Public License v3.0
217 stars 145 forks source link

ProgrammingError can't adapt type 'SimpleLazyObject' #96

Open ebdavison opened 4 years ago

ebdavison commented 4 years ago

After an upgrade to Django 3.1 (with django-survey-and-report==1.3.14 in my requirements.txt file), I am receiving an Internal Error 500 with this text whenever I try to submit a survey:

ProgrammingError
can't adapt type 'SimpleLazyObject'

This seems to be the relevant parameter info:

image

And this is the resulting query:

image

Pierre-Sassoulas commented 4 years ago

Thank you for reporting the bug, it's probably fixable with this stackoverflow answer https://stackoverflow.com/questions/31226625/. A date range might have been implemented incorrectly. I will release a new version if a fix + a migration file is proposed by pull request.