Permalink
Browse files

py3k fix for map to list conversion

  • Loading branch information...
Alper Kanat
Alper Kanat committed Oct 4, 2013
1 parent f75129e commit a6330e3aae635bb544cc080afedf0a34c0b394ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 tastypie_mongodb/resources.py
@@ -24,7 +24,7 @@ def obj_get_list(self, request=None, **kwargs):
"""
Maps mongodb documents to Document class.
"""
- return map(self.get_object_class(), self.get_collection().find())
+ return list(map(self.get_object_class(), self.get_collection().find()))
def obj_get(self, request=None, **kwargs):
"""

0 comments on commit a6330e3

Please sign in to comment.