views.py 288 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
3
# from django.shortcuts import render
from django.views import generic

4
from representatives.models import Representative
luxcem's avatar
luxcem committed
5
6
7
8
9
10


class IndexView(generic.ListView):
    template_name = 'memopol_representatives/list.html'

    def get_queryset(self):
11
        return Representative.objects.all()