Commit fbfd3126 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Enhance dossier list a bit

parent e28cbe1c
# Project specific "glue" coupling of all apps
from django.db import models
from django.db.models import Count
from core.views import GridListMixin, PaginationMixin, CSVDownloadMixin
from representatives import views as representatives_views
......@@ -82,4 +83,9 @@ class RepresentativeDetail(representatives_views.RepresentativeDetail):
class DossierList(PaginationMixin, representatives_votes_views.DossierList):
queryset = Dossier.objects.exclude(proposals__recommendation=None)
queryset = Dossier.objects.prefetch_related(
......@@ -34,4 +34,4 @@
- trans 'Committees'
%a{href: "{% url 'representatives_votes:dossier-list' %}"}
- trans 'Votes'
- trans 'Dossiers'
- extends "base.html"
- load i18n
- block content
%h1 Dossiers
- trans "Dossiers"
- trans "Title"
- trans "Recommendations"
- trans "Reference"
- for dossier in object_list
%a{'href': "{{ dossier.get_absolute_url }}"}
{{ dossier.title }}
%td= dossier.nb_recomm
%td= dossier.reference
- include "core/blocks/pagination.html"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment