Prevent petits cours demandes deletion
This commit is contained in:
parent
9f401b66e9
commit
213c11721e
1 changed files with 4 additions and 4 deletions
|
@ -310,7 +310,7 @@ class Migration(migrations.Migration):
|
||||||
model_name='petitcoursdemande',
|
model_name='petitcoursdemande',
|
||||||
name='traitee_par',
|
name='traitee_par',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.PROTECT,
|
||||||
blank=True,
|
blank=True,
|
||||||
to=settings.AUTH_USER_MODEL,
|
to=settings.AUTH_USER_MODEL,
|
||||||
null=True),
|
null=True),
|
||||||
|
@ -319,7 +319,7 @@ class Migration(migrations.Migration):
|
||||||
model_name='petitcoursattributioncounter',
|
model_name='petitcoursattributioncounter',
|
||||||
name='matiere',
|
name='matiere',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.PROTECT,
|
||||||
verbose_name='Matiere',
|
verbose_name='Matiere',
|
||||||
to='cof.PetitCoursSubject'),
|
to='cof.PetitCoursSubject'),
|
||||||
),
|
),
|
||||||
|
@ -327,7 +327,7 @@ class Migration(migrations.Migration):
|
||||||
model_name='petitcoursattributioncounter',
|
model_name='petitcoursattributioncounter',
|
||||||
name='user',
|
name='user',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.PROTECT,
|
||||||
to=settings.AUTH_USER_MODEL),
|
to=settings.AUTH_USER_MODEL),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
|
@ -342,7 +342,7 @@ class Migration(migrations.Migration):
|
||||||
model_name='petitcoursattribution',
|
model_name='petitcoursattribution',
|
||||||
name='matiere',
|
name='matiere',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.PROTECT,
|
||||||
verbose_name='Mati\xe8re',
|
verbose_name='Mati\xe8re',
|
||||||
to='cof.PetitCoursSubject'),
|
to='cof.PetitCoursSubject'),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue