Verified Commit ef093c16 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Use DRF's get_object_or_404 instead of the default in the pizzas viewset

parent 366e6ec8
from django.shortcuts import get_object_or_404
from django.db import IntegrityError
from rest_framework import permissions
from rest_framework.generics import get_object_or_404
from rest_framework.viewsets import GenericViewSet, ModelViewSet
from rest_framework.mixins import ListModelMixin
from rest_framework.decorators import list_route
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment