﻿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
25494	db_table option doesn't work in ManyToMany fields which using through option	Mehran Akhavan	nobody	"I have a model which contains a ManyToMany field using the through option. I wanted to change the name of the many to many table, so I added db_table in Meta class of through model. After running makemigrations and migrate commands, I have a tables with default names.


{{{
class MyModel(models.Model):
    my_field = models.ManyToManyField(AnotherModel, through='IntermediateModel')

class IntermediateModel(models.Model):
    class Meta:
         db_table = 'my_intermediate_name'
     my_model = models.ForeignKey(MyModel)
     another_model = models.ForeignKey(AnotherModel)
}}}

I run these commands:


{{{
python manage.py makemigrations
python manage.py migrate
}}}

I'm using postgresql 9.4.4
"	Bug	closed	Migrations	1.8	Normal	needsinfo	db_table migration		Unreviewed	0	0	0	0	0	0
