duck-booking-tool/booking/views.py

12 lines
280 B
Python
Raw Normal View History

2014-12-23 08:28:43 +00:00
from django.shortcuts import render
from django.views import generic
from .models import Duck
class DuckListView(generic.ListView):
template_name = 'booking/duck_list.html'
context_object_name = 'duck_list'
def get_queryset(self):
return Duck.objects.all()