serializex.py 242 B

12345678910
  1. from rest_framework import serializers
  2. from workreport.models import DailyReport
  3. class DailyReportSerializex(serializers.ModelSerializer):
  4. # 默认返回
  5. class Meta:
  6. model = DailyReport
  7. fields = '__all__'