Hi,
If is defined "db_table" in Meta class of a model, that you are using by through, the migrations create the table with original name, dosen't respect the db_table attribute defined on through model.
Instead of create table name "myapp_mychoicename" it create "myapp_test_company_related".
class Test(models.Model):
company_related = models.ManyToManyField(Company,
verbose_name='xxxxxx',
related_name='xxxxxxx',
through='TestCompany')
class TestCompany(models.Model):
test = models.ForeignKey(Test)
company = models.ForeignKey(Company)
class Meta:
auto_created = Test
db_table = 'myapp_mychoicename'
Enviado via UCSMail.