from django.views.generic import ListView

from models import Poll


class PollListView(ListView):
    model = Poll

from django.views.generic import DetailView, ListView

from models import Poll


class PollListView(ListView):
    model = Poll


class PollDetailView(DetailView):
    model = Poll

implement generic detail view for poll model