Browse Source

[videogames] Add scrobbles to views

Colin Powell 2 weeks ago
parent
commit
f230af89eb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      vrobbler/apps/videogames/views.py

+ 4 - 4
vrobbler/apps/videogames/views.py

@@ -1,17 +1,17 @@
-from django.views import generic
 from videogames.models import VideoGame, VideoGamePlatform
+from scrobbles.views import ScrobbleImportListView, ScrobbleableDetailView
 
 
-class VideoGameListView(generic.ListView):
+class VideoGameListView(ScrobbleImportListView):
     model = VideoGame
     paginate_by = 20
 
 
-class VideoGameDetailView(generic.DetailView):
+class VideoGameDetailView(ScrobbleableDetailView):
     model = VideoGame
     slug_field = "uuid"
 
 
-class VideoGamePlatformDetailView(generic.DetailView):
+class VideoGamePlatformDetailView(ScrobbleableDetailView):
     model = VideoGamePlatform
     slug_field = "uuid"