serializers.py 239 B

123456789
  1. from __future__ import print_function, unicode_literals
  2. from rest_framework.serializers import ModelSerializer
  3. from .models import SimpleModel
  4. class SimpleSerializer(ModelSerializer):
  5. class Meta(object):
  6. model = SimpleModel