Fix booking #2

This commit is contained in:
Kuroshini 2019-12-02 15:06:43 +03:00
parent cbe6a25d79
commit b3d01c8887

View File

@ -86,6 +86,8 @@ class CheckWhetherBookingAvailable(generics.GenericAPIView):
if establishment.guestonline_id is not None \
else service.response if service else None
response.update({'details': service_response})
if service_response is None:
response['available'] = False
return Response(data=response, status=200)