Ticket #17991: fix_issue_17991.patch

File fix_issue_17991.patch, 515 bytes (added by Okke, 12 years ago)
  • django/db/models/query.py

     
    17751775
    17761776    for obj in instances:
    17771777        instance_attr_val = instance_attr(obj)
    1778         vals = rel_obj_cache.get(instance_attr_val, [])
     1778        vals = rel_obj_cache.get(unicode(instance_attr_val), [])
    17791779        if single:
    17801780            # Need to assign to single cache on instance
    17811781            if vals:
Back to Top