Source

indie-community / gamedb / views.py

Full commit
1
2
3
4
5
6
7
from django.views.generic.detail import DetailView
from gamedb.models import Game

class ViewGame(DetailView):
    model = Game
    def get_object(self, queryset=None):
        return Game.objects.get(pk=1)