Please use Django's ticket tracker to report bugs in Django: 
https://code.djangoproject.com/newticket

Thanks!

On Saturday, December 6, 2014 8:10:42 AM UTC-5, [email protected] wrote:
>
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/66981e4f-7efe-4f9f-8e92-f7fae413af6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to