# Path: aircox/viewsets.py
# class SoundViewSet(BaseAPIView, viewsets.ModelViewSet):
#     serializer_class = SoundSerializer
#     queryset = Sound.objects.available().order_by('-pk')
#     filter_backends = (filters.DjangoFilterBackend,)
#     filterset_class = SoundFilter
# 
# Path: aircox_streamer/views.py
# class StreamerAdminMixin(AdminMixin, TemplateView):
#     template_name = 'aircox_streamer/streamer.html'
#     title = _('Streamer Monitor')


from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from . import viewsets
from aircox.viewsets import SoundViewSet
from .views import StreamerAdminMixin



admin.site.route_view('tools/streamer', StreamerAdminMixin.as_view(),
                      'tools-streamer', label=_('Streamer Monitor'))

streamer_prefix = 'streamer/(?P<station_pk>[0-9]+)/'


router = admin.site.router

# Path: aircox/viewsets.py
# class SoundViewSet(BaseAPIView, viewsets.ModelViewSet):
#     serializer_class = SoundSerializer
#     queryset = Sound.objects.available().order_by('-pk')
#     filter_backends = (filters.DjangoFilterBackend,)
#     filterset_class = SoundFilter
# 
# Path: aircox_streamer/views.py
# class StreamerAdminMixin(AdminMixin, TemplateView):
#     template_name = 'aircox_streamer/streamer.html'
#     title = _('Streamer Monitor')


# Path: aircox_streamer/urls.py
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from . import viewsets
from aircox.viewsets import SoundViewSet
from .views import StreamerAdminMixin




admin.site.route_view('tools/streamer', StreamerAdminMixin.as_view(),
                      'tools-streamer', label=_('Streamer Monitor'))

streamer_prefix = 'streamer/(?P<station_pk>[0-9]+)/'


router = admin.site.router

router.register(streamer_prefix + 'playlist', viewsets.PlaylistSourceViewSet,