Ticket #7716: 7716-select-related.diff
File 7716-select-related.diff, 515 bytes (added by , 16 years ago) |
---|
-
db/models/query.py
778 778 restricted = requested is not None 779 779 index_end = index_start + len(klass._meta.fields) 780 780 obj = klass(*row[index_start:index_end]) 781 if obj.pk is None: 782 return None, index_end 781 783 for f in klass._meta.fields: 782 784 if not select_related_descend(f, restricted, requested): 783 785 continue