Created
February 5, 2018 15:44
-
-
Save alfredrumss/3db26147e83c90b8c2b45ac997385d59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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