kopia lustrzana https://github.com/wagtail/wagtail
Add missing on_delete parameters to migrations
rodzic
3042c10ec2
commit
569178025c
|
@ -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',
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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),
|
||||
),
|
||||
]
|
||||
|
|
Ładowanie…
Reference in New Issue