Commit 2ff1353f authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Merge branch 'develop' into 'master'

Add delete cascade for course certification

See merge request !57
parents 8c481b33 29730d53
# Generated by Django 2.2.23 on 2021-05-26 15:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('certification', '0006_auto_20210520_1724'),
]
operations = [
migrations.AlterField(
model_name='coursecertification',
name='course_student',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='certificate', to='courses.CourseStudent', verbose_name='Enrollment'),
),
]
......@@ -23,7 +23,7 @@ class CourseCertification(models.Model):
)
course_student = models.OneToOneField(
CourseStudent,
models.PROTECT,
models.CASCADE,
verbose_name=_('Enrollment'),
related_name='certificate',
)
......
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