Prevent petits cours demandes deletion

This commit is contained in:
Martin Pépin 2017-02-23 11:03:28 +01:00
parent 9f401b66e9
commit 213c11721e

View file

@ -310,7 +310,7 @@ class Migration(migrations.Migration):
model_name='petitcoursdemande',
name='traitee_par',
field=models.ForeignKey(
on_delete=models.CASCADE,
on_delete=models.PROTECT,
blank=True,
to=settings.AUTH_USER_MODEL,
null=True),
@ -319,7 +319,7 @@ class Migration(migrations.Migration):
model_name='petitcoursattributioncounter',
name='matiere',
field=models.ForeignKey(
on_delete=models.CASCADE,
on_delete=models.PROTECT,
verbose_name='Matiere',
to='cof.PetitCoursSubject'),
),
@ -327,7 +327,7 @@ class Migration(migrations.Migration):
model_name='petitcoursattributioncounter',
name='user',
field=models.ForeignKey(
on_delete=models.CASCADE,
on_delete=models.PROTECT,
to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
@ -342,7 +342,7 @@ class Migration(migrations.Migration):
model_name='petitcoursattribution',
name='matiere',
field=models.ForeignKey(
on_delete=models.CASCADE,
on_delete=models.PROTECT,
verbose_name='Mati\xe8re',
to='cof.PetitCoursSubject'),
),