Revision 899fe015
Added by Benjamin Dauvergne over 12 years ago
calebasse/dossiers/views.py | ||
---|---|---|
259 | 259 |
| ( Q(recurrence_periodicity__isnull=False) |
260 | 260 |
& (Q(recurrence_end_date__gte=today) |
261 | 261 |
| Q(recurrence_end_date__isnull=True)))) \ |
262 |
.select_related() \ |
|
262 | 263 |
.prefetch_related('participants', 'exceptions__eventwithact', 'act_set__actvalidationstate_set') |
263 | 264 |
occurrences = [] |
264 | 265 |
for event in qs: |
Also available in: Unified diff
dossiers: augment prefetching when computing next_rdvs