Commit 73e79af3 authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Remove unnecessary print statement and comment

parent a39bc455
......@@ -80,11 +80,9 @@ class OrderViewset(ModelViewSet):
return order
return super().get_object()
# def create(self, request, *args, **kwargs):
def perform_create(self, serializer):
try:
if serializer.validated_data.get('name'):
print(serializer.validated_data.get('name'))
serializer.save(pizza_event=PizzaEvent.current())
else:
serializer.save(member=self.request.user.member,
......
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