modilabs/formhub — Issue #38: anonymous user downloading form
Author: dorey
Created: 2011-11-10 04:06:13+00:00
State: open
Labels: Bug

When an anonymous user tries to download a form, it causes a 500 error.

http://formhub.org/odk_viewer/export_spreadsheet/tutorial_1.csv

The error:

File "/project_env/lib/python2.6/site-packages/django/db/models/fields/__init__.py", line 292, in get_prep_lookup
return self.get_prep_value(value)

File "/project_env/lib/python2.6/site-packages/django/db/models/fields/__init__.py", line 479, in get_prep_value
return int(value)

TypeError: int() argument must be a string or a number, not 'AnonymousUser'