Fix queryset batch_size that wasn't copied to cloned queryset

This commit is contained in:
Bastien Gérard
2019-03-04 23:01:12 +01:00
parent 50ffa8014e
commit b640c766db
2 changed files with 11 additions and 1 deletions

View File

@@ -757,7 +757,7 @@ class BaseQuerySet(object):
'_read_preference', '_iter', '_scalar', '_as_pymongo',
'_limit', '_skip', '_hint', '_auto_dereference',
'_search_text', 'only_fields', '_max_time_ms',
'_comment')
'_comment', '_batch_size')
for prop in copy_props:
val = getattr(self, prop)