|
|
|
@ -202,11 +202,10 @@ class LiveLessonViewSet(ExtendedModelViewSet): |
|
|
|
} |
|
|
|
} |
|
|
|
search_fields = ('title', 'short_description',) |
|
|
|
search_fields = ('title', 'short_description',) |
|
|
|
ordering_fields = ('title', 'created_at', 'update_at',) |
|
|
|
ordering_fields = ('title', 'created_at', 'update_at',) |
|
|
|
# permission_classes = (IsAuthorObjectOrAdmin,) |
|
|
|
permission_classes = (IsTeacherOrAdmin,) |
|
|
|
# permission_map = { |
|
|
|
permission_map = { |
|
|
|
# 'create': IsAuthorOrAdmin, |
|
|
|
'delete': IsAdmin, |
|
|
|
# 'delete': IsAdmin, |
|
|
|
} |
|
|
|
# } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ImageViewSet(ExtendedModelViewSet): |
|
|
|
class ImageViewSet(ExtendedModelViewSet): |
|
|
|
|