from rest_framework import serializers
from .models import Lesson


class LessonSerializer(serializers.ModelSerializer):
    class Meta:
        model = Lesson
        fields = ("lesson_code", "lesson_name","pub_date")


03dd6e4b071ce55f88d7f6c2483209063ae97c67
<mask token>

<mask token>


class LessonSerializer(serializers.ModelSerializer):


    class Meta:
        model = Lesson
        fields = 'lesson_code', 'lesson_name', 'pub_date'

from rest_framework import serializers
from .models import Lesson


class LessonSerializer(serializers.ModelSerializer):


    class Meta:
        model = Lesson
        fields = 'lesson_code', 'lesson_name', 'pub_date'

from rest_framework import serializers
from .models import Lesson


class LessonSerializer(serializers.ModelSerializer):
    class Meta:
        model = Lesson
        fields = ("lesson_code", "lesson_name","pub_date")

