From 7aba157a6a0f987987bad640e1569951ab3a889d Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 31 Oct 2023 15:11:17 +0100 Subject: [PATCH] Squashed commit of the following: commit 01bb12dabc6ce95301df07ce6979ffabff82d232 Author: Roman Date: Tue Oct 31 15:10:44 2023 +0100 Add booking state and bookings folder uid to JSON serializerd booking --- .../prenotazioni/restapi/serializers/adapters/prenotazione.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py b/src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py index a6d909cb..ca79fa4a 100644 --- a/src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py +++ b/src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazione.py @@ -65,10 +65,12 @@ def __call__(self, *args, **kwargs): "staff_notes": self.prenotazione.staff_notes, "booking_date": json_compatible(booking_date), "booking_expiration_date": json_compatible(booking_expiration_date), + "booking_status": status["review_state"], "booking_status_label": translate( status["review_state"], context=self.request ), "booking_type": self.prenotazione.booking_type, + "booking_folder_uid": booking_folder.UID(), "vacation": self.prenotazione.isVacation(), "booking_code": self.prenotazione.getBookingCode(), "cosa_serve": useful_docs,