IDDRS_API/data_api/serializers.py

17 lines
466 B
Python
Raw Permalink Normal View History

2023-11-20 14:31:13 +00:00
from rest_framework import serializers
from .models import Levels, StandardsList, FileEvent
class LevelSerializer(serializers.ModelSerializer):
class Meta:
model = Levels
fields = '__all__'
class StandardsSerializer(serializers.ModelSerializer):
class Meta:
model = StandardsList
fields = '__all__'
class FileEventSerializer(serializers.ModelSerializer):
class Meta:
model = FileEvent
fields = '__all__'