[videogames] Add scrobbles to views
This commit is contained in:
@ -1,17 +1,17 @@
|
|||||||
from django.views import generic
|
|
||||||
from videogames.models import VideoGame, VideoGamePlatform
|
from videogames.models import VideoGame, VideoGamePlatform
|
||||||
|
from scrobbles.views import ScrobbleImportListView, ScrobbleableDetailView
|
||||||
|
|
||||||
|
|
||||||
class VideoGameListView(generic.ListView):
|
class VideoGameListView(ScrobbleImportListView):
|
||||||
model = VideoGame
|
model = VideoGame
|
||||||
paginate_by = 20
|
paginate_by = 20
|
||||||
|
|
||||||
|
|
||||||
class VideoGameDetailView(generic.DetailView):
|
class VideoGameDetailView(ScrobbleableDetailView):
|
||||||
model = VideoGame
|
model = VideoGame
|
||||||
slug_field = "uuid"
|
slug_field = "uuid"
|
||||||
|
|
||||||
|
|
||||||
class VideoGamePlatformDetailView(generic.DetailView):
|
class VideoGamePlatformDetailView(ScrobbleableDetailView):
|
||||||
model = VideoGamePlatform
|
model = VideoGamePlatform
|
||||||
slug_field = "uuid"
|
slug_field = "uuid"
|
||||||
|
|||||||
Reference in New Issue
Block a user