|
@@ -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"
|