2
Routers work with ViewSet
s. Your PeriodAveragesList
extends ListAPIView
, which is a class based view, not a ViewSet
.
If you still want to use a router for that view, see this answer for a workaround.
Source:stackexchange.com
2
Routers work with ViewSet
s. Your PeriodAveragesList
extends ListAPIView
, which is a class based view, not a ViewSet
.
If you still want to use a router for that view, see this answer for a workaround.