views.py 311 Bytes
Newer Older
luxcem's avatar
luxcem committed
1 2 3 4 5 6 7 8 9 10 11 12
# from django.shortcuts import render
from django.views import generic


from memopol_representatives.models import MemopolRepresentative


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

    def get_queryset(self):
        return MemopolRepresentative.objects.all()