Ticket #5895: perf_fix.diff

File perf_fix.diff, 589 bytes (added by Karen Tracey <kmtracey@…>, 17 years ago)
  • django/newforms/models.py

     
    264264
    265265    def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None):
    266266        kwargs = {'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix}
    267         if self.queryset:
     267        if self.queryset is not None:
    268268            kwargs['initial'] = [initial_data(obj) for obj in self.get_queryset()]
    269269        super(BaseModelFormSet, self).__init__(**kwargs)
    270270
Back to Top