|
|
|
|
@ -5,6 +5,7 @@ from django.contrib.auth import get_user_model |
|
|
|
|
from django.core.exceptions import ValidationError |
|
|
|
|
from django.core.mail import EmailMessage |
|
|
|
|
from django.http import HttpResponse, HttpResponseForbidden |
|
|
|
|
from rest_framework import permissions |
|
|
|
|
from rest_framework.permissions import IsAuthenticated |
|
|
|
|
from rest_framework.renderers import JSONRenderer |
|
|
|
|
from rest_framework.response import Response |
|
|
|
|
@ -168,6 +169,7 @@ class TeacherUpdateProgress(APIView): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class StudentUpdateProgress(APIView): |
|
|
|
|
permission_classes = (permissions.IsAuthenticated,) |
|
|
|
|
renderer_classes = (JSONRenderer,) |
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
|
|