Add missing on_delete parameters to migrations

pull/2243/merge
Matt Westcott 2016-02-19 12:38:53 +00:00
rodzic 3042c10ec2
commit 569178025c
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -16,9 +16,9 @@ class Migration(migrations.Migration):
name='GroupCollectionPermission',
fields=[
('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('collection', models.ForeignKey(related_name='group_permissions', verbose_name='collection', to='wagtailcore.Collection')),
('group', models.ForeignKey(related_name='collection_permissions', verbose_name='group', to='auth.Group')),
('permission', models.ForeignKey(to='auth.Permission', verbose_name='permission')),
('collection', models.ForeignKey(related_name='group_permissions', verbose_name='collection', to='wagtailcore.Collection', on_delete=models.CASCADE)),
('group', models.ForeignKey(related_name='collection_permissions', verbose_name='group', to='auth.Group', on_delete=models.CASCADE)),
('permission', models.ForeignKey(to='auth.Permission', verbose_name='permission', on_delete=models.CASCADE)),
],
options={
'verbose_name': 'group collection permission',

Wyświetl plik

@ -16,7 +16,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='document',
name='collection',
field=models.ForeignKey(related_name='+', to='wagtailcore.Collection', verbose_name='collection', default=wagtail.wagtailcore.models.get_root_collection_id),
field=models.ForeignKey(related_name='+', to='wagtailcore.Collection', verbose_name='collection', default=wagtail.wagtailcore.models.get_root_collection_id, on_delete=models.CASCADE),
preserve_default=True,
),
]

Wyświetl plik

@ -16,6 +16,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='image',
name='collection',
field=models.ForeignKey(to='wagtailcore.Collection', verbose_name='collection', default=wagtail.wagtailcore.models.get_root_collection_id, related_name='+'),
field=models.ForeignKey(to='wagtailcore.Collection', verbose_name='collection', default=wagtail.wagtailcore.models.get_root_collection_id, related_name='+', on_delete=models.CASCADE),
),
]