serializer.py 242 B

12345678910
  1. from rest_framework import serializers
  2. from treeAndTable.models import Dept_job
  3. class Dept_Job_Serializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = Dept_job
  6. # 全部都包含的意思
  7. fields = '__all__'