diff --git a/orders/serializers.py b/orders/serializers.py index 1e13c06..f47c40c 100644 --- a/orders/serializers.py +++ b/orders/serializers.py @@ -62,7 +62,7 @@ def create(self, validated_data): lunch_data = item_data.pop("lunch") menus_data = lunch_data.pop("menus") - if lunch_data.get('id') is not None: + if lunch_data.get("id") is not None: lunch = Lunch.objects.get(id=lunch_data["id"]) else: @@ -86,4 +86,4 @@ def update(self, instance, validated_data): instance.status = validated_data.get("status", instance.status) instance.save() - return instance \ No newline at end of file + return instance