Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created September 25, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/373c4707afb99a142806f444eea1c4e1 to your computer and use it in GitHub Desktop.
Save brunomichetti/373c4707afb99a142806f444eea1c4e1 to your computer and use it in GitHub Desktop.
from rest_framework import serializers
from applications.people.models import Person
class PersonDetailSerializer(serializers.ModelSerializer):
class Meta:
model = Person
fields = ('name', 'age')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment