1234567891011121314151617 |
- from rest_framework import serializers
- from treeAndTable.models import Dept_job, Dept_job_user
- class Dept_Job_Serializer(serializers.ModelSerializer):
- class Meta:
- model = Dept_job
- # 全部都包含的意思
- fields = '__all__'
- class DeptJobUserSerializer(serializers.ModelSerializer):
- class Meta:
- model = Dept_job_user
- # 全部都包含的意思
- fields = '__all__'
|