Ticket #12002: subqueries.diff
File subqueries.diff, 669 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | 67a68,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 | > |
12 | 69c79 |
13 | < pk_list[offset : offset + GET_ITERATOR_CHUNK_SIZE]), |
14 | --- |
15 | > actual_pk_list), |