diff --git a/onadata/apps/viewer/models/parsed_instance.py b/onadata/apps/viewer/models/parsed_instance.py index d50bbf5cf..1b079eac8 100644 --- a/onadata/apps/viewer/models/parsed_instance.py +++ b/onadata/apps/viewer/models/parsed_instance.py @@ -185,9 +185,6 @@ def _get_mongo_cursor(cls, query, fields, hide_deleted, username=None, id_string if username and id_string: query.update(cls.get_base_query(username, id_string)) - # check if query contains and _id and if its a valid ObjectID - if '_uuid' in query and ObjectId.is_valid(query['_uuid']): - query['_uuid'] = ObjectId(query['_uuid']) if hide_deleted: # display only active elements