or model._meta.app_config is contained in app_configs, for every field in model._meta.local_fields, #ANNOTATION only if field is an instance of models.BooleanField and field.has_default() evaluates to False. call the Warning function with 4 arguments: string "BooleanField does not have a default value.",
return [ Warning ( "BooleanField does not have a default value." , hint = ( "Django 1.6 changed the default value of BooleanField from False to None. " "See https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfield " "for more information." ) , obj = field , id = '1_6.W002' , ) for field in problem_fields ]