@ -112,7 +112,7 @@ class Resource:
data = self.mongo_qs
count = data.count()
if pk:
json_data = self.parse_fields(self.model)
json_data = self.parse_fields(self.mongo_qs.get(**{self.as_pk:pk}),self.model)
else:
data = data[self.offset:self.limit + self.offset]
json_data = []