﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21700	model_to_dict return id key as unicode	filip.f.novak@…	nobody	"Hello
After converting the model instance using model_to_dict is the key 'id' unicode type (all others are string). It causes a problem when accessing this parameter for further conversion into namedtuple.
Are you thinking about adding a function model_to_namedtuple? Implementation would (after removing the problem of 'id') elementary.

Output example:
{'code': u'B-US', 'pieces_in_package': 10, u'id': 1}
 
Thx."	Bug	closed	Forms	dev	Normal	wontfix	models, model_to_dict		Unreviewed	0	0	0	0	0	0
