gestiojeux/inventory/views.py

13 lines
265 B
Python
Raw Normal View History

from django.views.generic import ListView, DetailView
from .models import Game
class InventoryView(ListView):
model = Game
template_name = "inventory/inventory.html"
class GameView(DetailView):
model = Game
template_name = "inventory/game.html"