Ticket #12002: subqueries.diff

File subqueries.diff, 669 bytes (added by Vlastimil Zíma, 14 years ago)

Diff to delete correct ManyToMany relations

Line 
167a68,77
2>
3> # There is problem if ManyToMany relation is connected to other
4> # primary key than is primary key of model.
5> # Known occurence:
6> # Model with multiple non-abstract Model parents
7> actual_pk_list = cls.objects.filter(
8> pk__in = \
9> pk_list[offset : offset + GET_ITERATOR_CHUNK_SIZE]
10> ).values_list(f.related.model._meta.pk.attname, flat = True)
11>
1269c79
13< pk_list[offset : offset + GET_ITERATOR_CHUNK_SIZE]),
14---
15> actual_pk_list),
Back to Top