dossier_detail.py 308 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
# coding: utf-8

from django.views import generic

from representatives_votes.models import Dossier


class DossierDetail(generic.DetailView):

Nicolas Joyard's avatar
Nicolas Joyard committed
10
11
    queryset = Dossier.objects.prefetch_related(
        'proposals',
12
13
14
        'proposals__recommendation',
        'documents',
        'documents__chamber',
Nicolas Joyard's avatar
Nicolas Joyard committed
15
    )