소스 검색

[videogames] Add scrobbles to views

Colin Powell 2 주 전
부모
커밋
f230af89eb
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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"