@@ -67,7 +67,11 @@ def handle(self, *args, **options):
6767 if self .verbosity >= 1 :
6868 self .stdout .write (self .COMMAND_HINT )
6969
70- self ._process (to_process , batch_size = options ["batchsize" ], default_date = options ["default_date" ])
70+ self ._process (
71+ to_process ,
72+ batch_size = options ["batchsize" ],
73+ default_date = options ["default_date" ],
74+ )
7175
7276 def _auto_models (self ):
7377 to_process = set ()
@@ -143,7 +147,9 @@ def _bulk_history_create(self, model, batch_size, default_date=None):
143147 # creating them. So we only keep batch_size worth of models in
144148 # historical_instances and clear them after we hit batch_size
145149 if index % batch_size == 0 :
146- history .bulk_history_create (instances , batch_size = batch_size , default_date = default_date )
150+ history .bulk_history_create (
151+ instances , batch_size = batch_size , default_date = default_date
152+ )
147153
148154 instances = []
149155
@@ -159,7 +165,9 @@ def _bulk_history_create(self, model, batch_size, default_date=None):
159165
160166 # create any we didn't get in the last loop
161167 if instances :
162- history .bulk_history_create (instances , batch_size = batch_size , default_date = default_date )
168+ history .bulk_history_create (
169+ instances , batch_size = batch_size , default_date = default_date
170+ )
163171
164172 def _process (self , to_process , batch_size , default_date = None ):
165173 for model , history_model in to_process :
0 commit comments