﻿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
34183	Add a ChoicesMeta.max_length property returning the max_length when data type supports len()	Coumes Quentin	Coumes Quentin	"It would be helpful for enums inheriting {{{Choices}}} with a data type supporting {{{len()}}} to be able to compute {{{max_length}}} by themselves. 

This would make the definition of field's {{{max_length}}} easier as well as automatically create a new migration when deleting/adding members which would change the {{{max_length}}}.

If the data type does not support {{{len()}}}, it could raise {{{TypeError}}} (same exception raise by {{{len}}}) something like :

{{{
raise TypeError(""Can only compute max_length on data type supporting len()"")
}}}

I can do the patch if this feature does make sense to you."	New feature	closed	Database layer (models, ORM)	4.1	Normal	wontfix	choices, enums		Unreviewed	0	0	0	0	0	0
