So, basically I'm trying to convert an ImmutableMultiDict object to a list of lists or dictionary, but I'm having a hard time trying to figure out how. The thing is I have two values for the same key, so when I try the conversion, I can only get 1 value:
ImmutableMultiDict([('name', 'boom'), ('extension', 'pdf'), ('extension', 'doc')])
When I try dict(object)
{'name': 'boom', 'extension': 'pdf'}
Any suggestion?