Moved Delete and Alter after datamigration.
This commit is contained in:
parent
c8c3852323
commit
992f8a7b37
@ -19,22 +19,6 @@ class Migration(migrations.Migration):
|
||||
('expires_when', models.DateTimeField()),
|
||||
],
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='photoalbum',
|
||||
name='externallink_ptr',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='created_when',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='expires_when',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='id',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='photoalbum',
|
||||
name='id',
|
||||
@ -63,24 +47,6 @@ class Migration(migrations.Migration):
|
||||
field=models.URLField(null=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='photoalbum',
|
||||
name='place',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='photoalbums', to='lostplaces.place'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='place',
|
||||
name='submitted_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='places', to='lostplaces.explorer'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='placeimage',
|
||||
name='submitted_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='placeimages', to='lostplaces.explorer'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='ExternalLink',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='voucher',
|
||||
name='expireable_ptr',
|
||||
|
@ -33,4 +33,38 @@ class Migration(migrations.Migration):
|
||||
field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='photoalbum',
|
||||
name='externallink_ptr',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='created_when',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='expires_when',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='voucher',
|
||||
name='id',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='photoalbum',
|
||||
name='place',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='photoalbums', to='lostplaces.place'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='place',
|
||||
name='submitted_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='places', to='lostplaces.explorer'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='placeimage',
|
||||
name='submitted_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='placeimages', to='lostplaces.explorer'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='ExternalLink',
|
||||
),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user