Esempio n. 1
0
    def get_html(self, request, committee_slug, session_id, number, slug=None):
        meeting = self.get_object(request, committee_slug, session_id, number)

        document = meeting.evidence
        if document:
            return document_view(request, document, meeting=meeting, slug=slug)
        else:
            return render(request, "committees/meeting.html", {"meeting": meeting, "committee": meeting.committee})
Esempio n. 2
0
    def get_html(self, request, committee_slug, session_id, number, slug=None):
        meeting = self.get_object(request, committee_slug, session_id, number)

        document = meeting.evidence
        if document:
            return document_view(request, document, meeting=meeting, slug=slug)
        else:
            return render(request, "committees/meeting.html", {
                'meeting': meeting,
                'committee': meeting.committee
            })
Esempio n. 3
0
def committee_meeting(request, committee_slug, session_id, number, slug=None):
    meeting = get_object_or_404(CommitteeMeeting, committee__slug=committee_slug,
        session=session_id, number=number)

    document = meeting.evidence
    if document:
        return document_view(request, document, meeting=meeting, slug=slug)
    else:
        return render(request, "committees/meeting.html", {
            'meeting': meeting,
            'committee': meeting.committee
        })