Refs #32675 -- Removed to_field from ForeignKeys in contrib apps' migrations.

Refs #22889.
This commit is contained in:
David Wobrock 2021-04-28 21:23:27 +02:00 committed by Mariusz Felisiak
parent 0c71e0f9cf
commit ee3b719a81
3 changed files with 0 additions and 3 deletions

View File

@ -21,7 +21,6 @@ class Migration(migrations.Migration):
('action_flag', models.PositiveSmallIntegerField(verbose_name='action flag')),
('change_message', models.TextField(verbose_name='change message', blank=True)),
('content_type', models.ForeignKey(
to_field='id',
on_delete=models.SET_NULL,
blank=True, null=True,
to='contenttypes.ContentType',

View File

@ -19,7 +19,6 @@ class Migration(migrations.Migration):
('content_type', models.ForeignKey(
to='contenttypes.ContentType',
on_delete=models.CASCADE,
to_field='id',
verbose_name='content type',
)),
('codename', models.CharField(max_length=100, verbose_name='codename')),

View File

@ -14,7 +14,6 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('site', models.ForeignKey(
to='sites.Site',
to_field='id',
on_delete=models.CASCADE,
verbose_name='site',
)),