Added description to update booking method

(cherry picked from commit a947eb1)
This commit is contained in:
dormantman 2019-12-18 18:01:31 +03:00 committed by Kuroshini
parent 4b563989a1
commit 62bee3156c

View File

@ -143,6 +143,10 @@ class UpdatePendingBooking(generics.UpdateAPIView):
permission_classes = (permissions.AllowAny,)
serializer_class = UpdateBookingSerializer
@swagger_auto_schema(operation_description="Request body params\n\n"
"Required: 'email', 'phone', 'last_name', "
"'first_name', 'country_code', 'pending_booking_id',"
"Not req: 'note'")
def patch(self, request, *args, **kwargs):
instance = self.get_object()
data = request.data.copy()