Commit 1213695f authored by LiniEisha's avatar LiniEisha

Reformatting serializer.py

parent 1e4f376c
...@@ -4,6 +4,7 @@ from FirstApp.serializers import LecturerSerializer, SubjectSerializer ...@@ -4,6 +4,7 @@ from FirstApp.serializers import LecturerSerializer, SubjectSerializer
from . models import * from . models import *
#serializers used in Lecture Summarizing Component
class LectureAudioSerializer(serializers.ModelSerializer): class LectureAudioSerializer(serializers.ModelSerializer):
lecturer = LecturerSerializer() lecturer = LecturerSerializer()
...@@ -23,7 +24,6 @@ class LectureAudioNoiseRemovedSerializer(serializers.ModelSerializer): ...@@ -23,7 +24,6 @@ class LectureAudioNoiseRemovedSerializer(serializers.ModelSerializer):
class LectureSpeechToTextSerializer(serializers.ModelSerializer): class LectureSpeechToTextSerializer(serializers.ModelSerializer):
# lecture_speech_to_text_id = LectureAudioNoiseRemovedSerializer()
lecture_audio_id = LectureAudioSerializer() lecture_audio_id = LectureAudioSerializer()
class Meta: class Meta:
...@@ -32,7 +32,6 @@ class LectureSpeechToTextSerializer(serializers.ModelSerializer): ...@@ -32,7 +32,6 @@ class LectureSpeechToTextSerializer(serializers.ModelSerializer):
class LectureAudioSummarySerializer(serializers.ModelSerializer): class LectureAudioSummarySerializer(serializers.ModelSerializer):
# lecture_audio_noise_removed_id = LectureSpeechToTextSerializer()
lecture_audio_id = LectureAudioSerializer() lecture_audio_id = LectureAudioSerializer()
class Meta: class Meta:
...@@ -41,10 +40,8 @@ class LectureAudioSummarySerializer(serializers.ModelSerializer): ...@@ -41,10 +40,8 @@ class LectureAudioSummarySerializer(serializers.ModelSerializer):
class LectureNoticesSerializer(serializers.ModelSerializer): class LectureNoticesSerializer(serializers.ModelSerializer):
# lecture_audio_noise_removed_id = LectureSpeechToTextSerializer()
lecture_audio_id = LectureAudioSerializer() lecture_audio_id = LectureAudioSerializer()
class Meta: class Meta:
# model = LectureAudioSummary
model = LectureNotices model = LectureNotices
fields = '__all__' fields = '__all__'
\ No newline at end of file
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