Separate views into their own file
This commit is contained in:
18
core/views/games.py
Normal file
18
core/views/games.py
Normal file
@ -0,0 +1,18 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from django.views.generic import ListView
|
||||
|
||||
from twitch_app.models import (
|
||||
Game,
|
||||
)
|
||||
|
||||
logger: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class GameView(ListView):
|
||||
model = Game
|
||||
template_name: str = "games.html"
|
||||
context_object_name: str = "games"
|
||||
paginate_by = 100
|
Reference in New Issue
Block a user