﻿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
25904	--fake-initial does not work for ManyToMany with through Model	Maciej Pawlisz	Tim Graham	"I came across this issue when migrating from django 1.6.11 and south. When model has ManyToMany field then automatic initial migration contains `AddField` operation for this field, which of course is not present in database, so django thinks that it cannot fake this migration.

How to reproduce:
`fake_through.models.py`:
{{{
from django.db import models
class A(models.Model):
    b = models.ManyToManyField('B', through=""C"")

class B(models.Model):
    pass

class C(models.Model):
    a = models.ForeignKey('A')
    b = models.ForeignKey('B')
}}}
commands:
{{{
python manage.py makemigrations fake_through
python manage.py migrate fake_through
python manage.py migrate fake_through zero --fake
python manage.py migrate fake_through --fake-initial
django.db.utils.OperationalError: table ""fake_through_a"" already exists
}}}"	Bug	closed	Migrations	1.9	Release blocker	duplicate			Accepted	0	0	0	0	0	0
