Fixing python 2.5 support

This commit is contained in:
Ross Lawley 2013-01-04 14:28:42 +00:00
parent f890ebd0f4
commit e6ac8cab53

View File

@ -516,12 +516,15 @@ class QuerySet(object):
'_where_clause', '_loaded_fields', '_ordering', '_snapshot',
'_timeout', '_class_check', '_slave_okay', '_read_preference',
'_iter', '_scalar', '_as_pymongo', '_as_pymongo_coerce',
'_limit', '_skip', '_slice', '_hint')
'_limit', '_skip', '_hint')
for prop in copy_props:
val = getattr(self, prop)
setattr(c, prop, copy.copy(val))
if self._slice:
c._slice = self._slice
if self._cursor_obj:
c._cursor_obj = self._cursor_obj.clone()