theme_detail.py 366 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding: utf-8

from django.views import generic

from memopol_themes.models import Theme


class ThemeDetail(generic.DetailView):
    queryset = Theme.objects.prefetch_related(
        'links',
        'dossiers__documents__chamber',
        'proposals__recommendation',
        'proposals__dossier__documents__chamber',
        'positions__representative',
    )