Ticket #13039: diff

File diff, 536 bytes (added by tangc, 15 years ago)
  • contrib/admin/templatetags/admin_list.py

    diff -r 8ffdd285ba5e contrib/admin/templatetags/admin_list.py
    a b  
    182182        yield mark_safe(force_unicode(form[cl.model._meta.pk.name]))
    183183
    184184def results(cl):
    185     if cl.formset:
     185    if hasattr(cl, 'formset') and cl.formset:
    186186        for res, form in zip(cl.result_list, cl.formset.forms):
    187187            yield list(items_for_result(cl, res, form))
    188188    else:
Back to Top