mirror of https://github.com/django/django.git
Refs #32675 -- Removed to_field from ForeignKeys in contrib apps' migrations.
Refs #22889.
This commit is contained in:
parent
0c71e0f9cf
commit
ee3b719a81
|
@ -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',
|
||||
|
|
|
@ -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')),
|
||||
|
|
|
@ -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',
|
||||
)),
|
||||
|
|
Loading…
Reference in New Issue