Can’t find the error in my django project

I am creating a booking website for hotels using Django, I used the booking api to get the hotels with its images and location highlights… I sent to the django template a list of dictionaries from the backend, each dict represents a hotel, now there is two apis request that I am using
1- To get all the hotels
2-To get the images and location highlights of the hotel based on its id that 1 will give me alongside other info like the name and address… (when a button is pressed)