-
-
Save ewelina29/ada20176e8230e519c8913e7598076fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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