diff --git a/eox_nelp/course_experience/models.py b/eox_nelp/course_experience/models.py index 01a70158..8e0db09c 100644 --- a/eox_nelp/course_experience/models.py +++ b/eox_nelp/course_experience/models.py @@ -87,7 +87,7 @@ class BaseFeedback(models.Model): author = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) rating_content = models.IntegerField(blank=True, null=True, choices=RATING_OPTIONS) feedback = models.CharField(max_length=500, blank=True, null=True) - public = models.BooleanField(null=True, default=True) + public = models.BooleanField(null=True, default=False) course_id = models.ForeignKey(CourseOverview, null=True, on_delete=models.SET_NULL) class Meta: diff --git a/eox_nelp/migrations/0004_feedback_public_default_to_false.py b/eox_nelp/migrations/0004_feedback_public_default_to_false.py new file mode 100644 index 00000000..5599ac8f --- /dev/null +++ b/eox_nelp/migrations/0004_feedback_public_default_to_false.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.19 on 2023-06-29 09:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('eox_nelp', '0003_feedback'), + ] + + operations = [ + migrations.AlterField( + model_name='feedbackcourse', + name='public', + field=models.BooleanField(default=False, null=True), + ), + migrations.AlterField( + model_name='feedbackunit', + name='public', + field=models.BooleanField(default=False, null=True), + ), + ]