~widelands-dev/widelands-website/trunk

147 by Holger Rapp
Added a first version of a screenshot application
1
# Create your views here.
2
532.1.1 by franku
converted to python 3.6 using 2to3 script
3
from .models import Category
531.1.2 by franku
use a class based view; removed url and view which serve only a 404
4
from django.views.generic.list import ListView
5
6
class CategoryList(ListView):
531.1.4 by franku
applied some default ordering
7
    model = Category
531.1.2 by franku
use a class based view; removed url and view which serve only a 404
8
    template_name = 'wlscreens/index.html'
9
    context_object_name = 'categories'