13 lines
389 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
template_name = 'release_list.html'
class OdyseeChannelListView(ListView):
model = OdyseeChannel
template_name = 'channel_list.html'