Commit a64bdbda authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Merge branch 'fix/use-correct-object-404' into 'master'

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

See merge request !628
parents 46d91a8c ef093c16
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