Opened 9 years ago

Closed 9 years ago

#25522 closed Bug (needsinfo)

squashmigrations tries to alter M2M's through table

Reported by: Kevin Turner Owned by: nobody
Component: Migrations Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

squashmigrations produced this pair of operations:

        migrations.AddField(
            model_name='tagcategorizeditem',
            name='tags',
            field=models.ManyToManyField(to=b'paks.Tag'),
        ),
        migrations.AlterField(
            model_name='tagcategorizeditem',
            name='tags',
            field=models.ManyToManyField(to=b'paks.Tag', through='paks.ItemTag'),
        )

which fails to execute because "you cannot add through= on M2M fields"

Change History (2)

comment:1 by Tim Graham, 9 years ago

It's helpful if you include the steps to reproduce the issue, otherwise it's a bit difficult to triage the ticket and check if the issue is fixed in a newer version of Django. Thanks!

comment:2 by Tim Graham, 9 years ago

Resolution: needsinfo
Status: newclosed
Type: UncategorizedBug
Note: See TracTickets for help on using tickets.
Back to Top