Several stracktraces like this today, so did the needful and changed the 'get' to a filter and return the first Instance instead.
Several stracktraces like this today, so did the needful and changed the 'get' to
a filter and return the first Instance instead.

Traceback (most recent call last):

  File "/home/ubuntu/srv/formhub-ec2/project_env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/ubuntu/srv/formhub-ec2/formhub/odk_logger/views.py", line 599, in view_download_submission
    user__username=username, deleted_at=None)

  File "/home/ubuntu/srv/formhub-ec2/project_env/local/lib/python2.7/site-packages/django/shortcuts/__init__.py", line 113, in get_object_or_404
    return queryset.get(*args, **kwargs)

  File "/home/ubuntu/srv/formhub-ec2/project_env/local/lib/python2.7/site-packages/django/db/models/query.py", line 407, in get
    (self.model._meta.object_name, num))

MultipleObjectsReturned: get() returned more than one Instance -- it returned 2!

SEL-Columbia/formhub,GeoODK/formhub,ultimateprogramer/formhub,GeoODK/formhub,SEL-Columbia/formhub,wesley1001/formhub,ultimateprogramer/formhub,SEL-Columbia/formhub,wesley1001/formhub,ultimateprogramer/formhub,wesley1001/formhub,ultimateprogramer/formhub,GeoODK/formhub,SEL-Columbia/formhub,wesley1001/formhub