Ticket #12654: fix.diff

File fix.diff, 450 bytes (added by Karataev Pavel, 15 years ago)
  • django/contrib/admin/util.py

     
    247247        f = None
    248248    else:
    249249        attr = None
    250         value = getattr(obj, f.attname)
     250        value = getattr(obj, name)
    251251    return f, attr, value
    252252
    253253def label_for_field(name, model, model_admin=None, return_attr=False):
Back to Top