﻿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
34360	Django development server doesn't reload on TypeError of a CharField	dimyG	nobody	"If you add ""required=True"" in the tier CharField below, a TypeError exception is raised and development server doesn't reload. 
Maybe this is related with https://code.djangoproject.com/ticket/30500 

{{{
class User(AbstractUser):
    tier_choices = (
        (Tiers.free, 'Free'),
        (Tiers.basic, 'Basic'),
        (Tiers.premium, 'Premium'),
    )

    tier = models.CharField(max_length=10, choices=tier_choices, default=Tiers.free, required=True)
}}}


{{{
  File ""d:\Projects_D\web_ai\auth\auth_src\auth_app\models.py"", line 9, in <module>
    class User(AbstractUser):
  File ""d:\Projects_D\web_ai\auth\auth_src\auth_app\models.py"", line 16, in User
    tier = models.CharField(max_length=10, choices=tier_choices, default='free', required=True)
  File ""d:\Projects_D\web_ai\auth\py3107\lib\site-packages\django\db\models\fields\__init__.py"", line 1121, in __init__
    super().__init__(*args, **kwargs)
TypeError: Field.__init__() got an unexpected keyword argument 'required'
}}}

"	Bug	closed	Database layer (models, ORM)	4.1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
