add missing migrations after cleanup and adding of on_delete to all foreignkeys

This commit is contained in:
Thomas Steen Rasmussen 2018-03-18 09:07:34 +01:00
parent 01a55ae149
commit 03fc20a459
7 changed files with 236 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bar', '0002_auto_20170916_2128'),
]
operations = [
migrations.AlterField(
model_name='product',
name='category',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='products', to='bar.ProductCategory'),
),
migrations.AlterField(
model_name='productcategory',
name='camp',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='camps.Camp'),
),
]

View file

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('program', '0045_event_proposal'),
]
operations = [
migrations.AlterField(
model_name='favorite',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='favorites', to=settings.AUTH_USER_MODEL),
),
]

View file

@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0052_auto_20171004_0005'),
]
operations = [
migrations.AlterField(
model_name='creditnote',
name='user',
field=models.ForeignKey(blank=True, help_text='The user this credit note belongs to, if any.', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='creditnotes', to=settings.AUTH_USER_MODEL, verbose_name='User'),
),
migrations.AlterField(
model_name='epaypayment',
name='callback',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='shop.EpayCallback'),
),
migrations.AlterField(
model_name='order',
name='user',
field=models.ForeignKey(help_text='The user this shop order belongs to.', on_delete=django.db.models.deletion.PROTECT, related_name='orders', to=settings.AUTH_USER_MODEL, verbose_name='User'),
),
migrations.AlterField(
model_name='orderproductrelation',
name='order',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='shop.Order'),
),
migrations.AlterField(
model_name='orderproductrelation',
name='product',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='shop.Product'),
),
migrations.AlterField(
model_name='product',
name='category',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='products', to='shop.ProductCategory'),
),
migrations.AlterField(
model_name='product',
name='ticket_type',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='tickets.TicketType'),
),
]

View file

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sponsors', '0006_auto_20170715_1110'),
]
operations = [
migrations.AlterField(
model_name='sponsor',
name='tier',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sponsors.SponsorTier'),
),
migrations.AlterField(
model_name='sponsortier',
name='camp',
field=models.ForeignKey(help_text='The camp this sponsor tier belongs to', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='sponsor_tiers', to='camps.Camp'),
),
]

View file

@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('teams', '0020_auto_20180304_1233'),
]
operations = [
migrations.AlterField(
model_name='teammember',
name='team',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='teams.Team'),
),
migrations.AlterField(
model_name='teammember',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='teamtask',
name='team',
field=models.ForeignKey(help_text='The team this task belongs to', on_delete=django.db.models.deletion.PROTECT, related_name='tasks', to='teams.Team'),
),
]

View file

@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tickets', '0004_auto_20170823_1228'),
]
operations = [
migrations.AlterField(
model_name='discountticket',
name='ticket_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tickets.TicketType'),
),
migrations.AlterField(
model_name='shopticket',
name='order',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='shoptickets', to='shop.Order'),
),
migrations.AlterField(
model_name='shopticket',
name='product',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='shop.Product'),
),
migrations.AlterField(
model_name='shopticket',
name='ticket_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tickets.TicketType'),
),
migrations.AlterField(
model_name='sponsorticket',
name='sponsor',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sponsors.Sponsor'),
),
migrations.AlterField(
model_name='sponsorticket',
name='ticket_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tickets.TicketType'),
),
migrations.AlterField(
model_name='tickettype',
name='camp',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='camps.Camp'),
),
]

View file

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 08:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('villages', '0010_auto_20170318_1506'),
]
operations = [
migrations.AlterField(
model_name='village',
name='camp',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='camps.Camp'),
),
migrations.AlterField(
model_name='village',
name='contact',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
),
]