1234567891011121314151617181920212223 |
- from rest_framework import serializers
- from rest_framework.serializers import ListSerializer
- from relation.models import *
- class DaptSerializer(serializers.ModelSerializer):
- class Meta:
- model = Dapt
- fields = '__all__'
- class PostSerializer(serializers.ModelSerializer):
- class Meta:
- model = Post
- fields = '__all__'
- class UserSerializer(serializers.ModelSerializer):
- class Meta:
- model = User
- fields = '__all__'
- class DaptUserSerializer(serializers.ModelSerializer):
- class Meta:
- model = DaptUser
- fields = '__all__'
|