1234567891011121314151617 |
- from videogames.models import VideoGame, VideoGamePlatform
- from scrobbles.views import ScrobbleImportListView, ScrobbleableDetailView
- class VideoGameListView(ScrobbleImportListView):
- model = VideoGame
- paginate_by = 20
- class VideoGameDetailView(ScrobbleableDetailView):
- model = VideoGame
- slug_field = "uuid"
- class VideoGamePlatformDetailView(ScrobbleableDetailView):
- model = VideoGamePlatform
- slug_field = "uuid"
|