Skip to content

Instantly share code, notes, and snippets.

@alfredrumss
Created February 5, 2018 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredrumss/3db26147e83c90b8c2b45ac997385d59 to your computer and use it in GitHub Desktop.
Save alfredrumss/3db26147e83c90b8c2b45ac997385d59 to your computer and use it in GitHub Desktop.
def GetRoomsExtra(solutions, hotel):
return [ dict(solution, **{'room_extra': Room.objects.get(code=solution['rooms_details'][0]['room_code'], level__identifier=hotel)}) for solution in solutions]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment