Commit ae75cad6 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

[Classroom Status] Add route for user-activities

parent 18f6ad5e
......@@ -312,7 +312,7 @@ class ReportPagination(PageNumberPagination):
max_page_size = 100
class UserStats(viewsets.ReadOnlyModelViewSet):
class UserStatsViewSet(viewsets.ReadOnlyModelViewSet):
model = User
queryset = User.objects.all().order_by('name')
serializer_class = UserStatsSerializer
......
from django.conf.urls import url, include
from courses.stats.views import (
UserActionsView,
UserAccessView
UserAccessView,
)
......
......@@ -24,7 +24,7 @@ from courses.reports.views import (
SummaryViewSet,
UsersByGroupViewSet,
UsersByClassViewSet,
UserStats
UserStatsViewSet
)
from courses.classroom.views import (
BasicClassroomViewSet,
......@@ -33,6 +33,7 @@ from courses.classroom.views import (
)
from courses.stats.views import (
UserActionsView,
UserActivitiesViewSet
)
......@@ -55,7 +56,7 @@ router.register(r'class_basic', BasicClassViewSet)
router.register(r'summary', SummaryViewSet, base_name='summary')
router.register(r'users-by-group', UsersByGroupViewSet, base_name='users-by-group')
router.register(r'users-by-class', UsersByClassViewSet, base_name='users-by-class')
router.register(r'user-reports', UserStats, base_name='user-reports')
router.register(r'user-reports', UserStatsViewSet, base_name='user-reports')
# router.register(r'course_carousel', views.CarouselCourseView, base_name='course_carousel')
......@@ -70,6 +71,9 @@ router.register(r'classrooms', BasicClassroomViewSet, base_name='classrooms')
router.register(r'classroom', ClassroomViewSet, base_name='classroom')
router.register(r'event', EventViewSet, base_name='event')
# Stats
router.register(r'user-activities', UserActivitiesViewSet, base_name='user-activities')
app_name = 'courses'
urlpatterns = [
# Stats (Activity Stream related functionality)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment