﻿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
33016	Cannot override choices error_messages in model	Suneeth S	nobody	"I have a model class (from django.db.model) and a char field with choices attribute, my form is not created from django form and i am using a serializer in the middle of the model and my static HTML form when validating my choices field (dropdown) it shows the default validation messages only, i couldn't override the error messages. Thanks in advance. 

here is my code

class CustomUser(BaseModel, AbstractUser):
    type = models.CharField(choices=TYPES, max_length=20, default='super_admin',error_messages={""null"":'Value is not a valid.',""blank"":'Value is not a valid.',""invalid_choice"":'Value is not a valid.'})

note: Base model inherited from models.Model
"	Uncategorized	closed	Database layer (models, ORM)	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
