17 lines
515 B
Python
17 lines
515 B
Python
from django.views.generic import ListView
|
|
from django.shortcuts import render
|
|
from django.http import HttpResponse
|
|
from odyseescraper.models import OdyseeChannel, OdyseeRelease
|
|
|
|
class OdyseeReleaseListView(ListView):
|
|
model = OdyseeRelease
|
|
paginate_by = 3 * 5
|
|
template_name = 'release_list.html'
|
|
ordering = ['name', 'channel', 'released']
|
|
|
|
class OdyseeChannelListView(ListView):
|
|
model = OdyseeChannel
|
|
paginate_by = 10
|
|
template_name = 'channel_list.html'
|
|
ordering = ['name', 'handle']
|