Source

indie-community / gamedb / views.py

Diff from to

gamedb/views.py

-# Create your views here.
+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)