dossier_detail.py 256 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
12
13
    queryset = Dossier.objects.prefetch_related(
        'proposals',
        'proposals__recommendation'
    )