Some checks failed
build / test (push) Has been cancelled
This should make scrobbling sports more like tasks. The root scrobbled items are a little more generic, but it's easier to see viewing patterns.
13 lines
319 B
Python
13 lines
319 B
Python
from sports.models import SportEvent
|
|
from vrobbler.apps.scrobbles.views import ScrobbleableDetailView, ScrobbleableListView
|
|
|
|
|
|
class SportEventListView(ScrobbleableListView):
|
|
model = SportEvent
|
|
paginate_by = 50
|
|
|
|
|
|
class SportEventDetailView(ScrobbleableDetailView):
|
|
model = SportEvent
|
|
slug_field = "uuid"
|