Source

indie-community / gamedb / views.py

Diff from to

File gamedb/views.py

 from django.views.generic.detail import DetailView
-from gamedb.models import Game
+from gamedb.models import Game, Writer, Artist, Composer
 from django.views.generic.list import ListView
 from gamedb.forms import FilterForm
 
             if 'style' in self.request.GET:
                 qs=qs.filter(style=self.filter_form.cleaned_data['style'])
         return qs
+
+class ViewWriter(DetailView):
+    model = Writer
+
+class ViewArtist(DetailView):
+    model = Artist
+
+class ViewComposer(DetailView):
+    model = Composer