serializers.py 199 B

123456789
  1. from rest_framework import serializers
  2. from myapp.models import MyRequest
  3. class RequestSerializer(serializers.ModelSerializer):
  4. class Meta:
  5. model = MyRequest
  6. fields = '__all__'