﻿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
22435	Adding a ManyToManyField and running makemigrations prompts for a default	andrewsg	nobody	"Adding a ManyToManyField to an existing model prompts the user as so:

{{{
You are trying to add a non-nullable field 'authors' to post without a default;
we can't do that (the database needs something to populate existing rows).
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows)
 2) Quit, and let me add a default in models.py
Select an option:
}}}

Since there is no way to specify a default for an M2M field in the interactive process, this makes it impossible to add M2M fields.

The workaround is to cancel and add `null=True` to the field definition.  But `null=True` does not apply to `ManyToManyField`, so this should be unnecessary.
"	Bug	closed	Migrations	dev	Release blocker	fixed		gabrielbrasil Sebastian Bauer	Accepted	1	0	0	0	0	0
