Ticket #5895: perf_fix.diff
File perf_fix.diff, 589 bytes (added by , 17 years ago) |
---|
-
django/newforms/models.py
264 264 265 265 def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None): 266 266 kwargs = {'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix} 267 if self.queryset :267 if self.queryset is not None: 268 268 kwargs['initial'] = [initial_data(obj) for obj in self.get_queryset()] 269 269 super(BaseModelFormSet, self).__init__(**kwargs) 270 270