django-rest-framework/tests/browsable_api/serializers.py

9 lines
221 B
Python
Raw Permalink Normal View History

from rest_framework.serializers import ModelSerializer
from tests.models import BasicModelWithUsers
class BasicSerializer(ModelSerializer):
class Meta:
model = BasicModelWithUsers
fields = '__all__'