Commit e4526b8c authored by Evili del Rio's avatar Evili del Rio

Add on_cascade=models.PROTECT to ech foreign key

parent 71593564
# Generated by Django 2.2.6 on 2019-10-24 12:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clades', '0006_common_name'),
]
operations = [
migrations.AlterField(
model_name='classe',
name='phylum',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Phylum'),
),
migrations.AlterField(
model_name='commonname',
name='locale',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Locale'),
),
migrations.AlterField(
model_name='commonname',
name='species',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Species'),
),
migrations.AlterField(
model_name='family',
name='ordo',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Ordo'),
),
migrations.AlterField(
model_name='genus',
name='family',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Family'),
),
migrations.AlterField(
model_name='locale',
name='locale',
field=models.CharField(choices=[('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')], max_length=15, unique=True),
),
migrations.AlterField(
model_name='ordo',
name='classe',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Classe'),
),
migrations.AlterField(
model_name='phylum',
name='kingdom',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Kingdom'),
),
migrations.AlterField(
model_name='species',
name='genus',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='clades.Genus'),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment