﻿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
28347	Allow custom attributes for model fields	Tom Turner	nobody	"I want to add a custom attributes to a Django model field


{{{
name = models.CharField(max_length=255, data_merge=True)
}}}


I want to do this so i can loop round my fields and see if this field is set.

{{{
        for field in Project._meta.get_fields(include_parents=False, include_hidden=False):
            if field.extra_info.data_merge:
                   // do something here
}}}

I haven't been the first to ask for this see [https://stackoverflow.com/questions/20679057/adding-custom-attributes-to-django-model-field]

I understand that you might not won't any attribute won't be good as it could hide error. So one could do

{{{
name = models.CharField(max_length=255, meta_data={'data_merge':True})
}}}


If you accept this enhancement I am happy to write a patch, test and documentation. Please let me know.

"	New feature	new	Database layer (models, ORM)	1.11	Normal				Someday/Maybe	0	0	0	0	0	0
