Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created September 25, 2019 18:32
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/44be69fb016dfbadeefdeb25d1915667 to your computer and use it in GitHub Desktop.
Save brunomichetti/44be69fb016dfbadeefdeb25d1915667 to your computer and use it in GitHub Desktop.
from rest_framework import generics
from applications.people.serializers import PersonDetailSerializer
class PeopleListView(generics.ListCreateAPIView):
queryset = Person.objects.all()
serializer_class = PersonDetailSerializer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment