Skip to content

Instantly share code, notes, and snippets.

@ewelina29
Created April 8, 2021 20:39
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 ewelina29/ada20176e8230e519c8913e7598076fe to your computer and use it in GitHub Desktop.
Save ewelina29/ada20176e8230e519c8913e7598076fe to your computer and use it in GitHub Desktop.
class PizzaCreateAPIView(generics.CreateAPIView):
serializer_class = PizzaSerializer
class PizzaListAPIView(generics.ListAPIView):
serializer_class = PizzaListSerializer
queryset = Pizza.objects.all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment