﻿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
29819	"ManyToManyField needs ""through"" argument (and its link table) when working with a legacyDB"	Elaci0	nobody	"Still working with an existing legacy database integration (I will stop, I promise) and the ""--fake-initial"" switch

it seems to me that when I use a ''ManyToManyField '' inside a model I must include also a link-table  using the **''""through""''** argument, otherwise Django complies with an ""already existing table"" error. This happen only with an existing DB, if I start from the scratch no problem at all because all tables are created on-the-fly

(I guess that without any ""through"" argument the migration process creates such join-table which name doesn't match any of the existing table)

Maybe it's not a problem but I think that perhaps it should be stated into documentation of  ""inspectDB""  ManytoManyField [https://docs.djangoproject.com/en/2.1/topics/db/models/#extra-fields-on-many-to-many-relationships]"" 
"	Uncategorized	closed	Documentation	2.1	Normal	needsinfo	"ManyToManyField, legacyDB, ""through"""		Unreviewed	0	0	0	0	0	0
