Child: [a4d8c3] (diff)

Download this file

views.py    17 lines (14 with data), 563 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#from django.shortcuts import render
from django.views.generic import ListView
from analysis.models import Analysis
class AnalysisList(ListView):
queryset = Analysis.objects.order_by('-created')
context_object_name = 'analises_list'
# def get_context_data(self, **kwargs):
# # Call the base implementation first to get a context
# context = super(AnalysisList, self).get_context_data(**kwargs)
#
# for analysis in self.queryset.all():
#
# context['publisher'] = "Aaaa"
# return context