.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 3.1.3 on 2021-02-06 09:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('anatomy', '0027_anatomyquestion_examination'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='anatomyquestion',
|
||||
name='open_access',
|
||||
field=models.BooleanField(default=True, help_text='If a question should be freely available to browse'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='anatomyquestion',
|
||||
name='question_type',
|
||||
field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.questiontype'),
|
||||
),
|
||||
]
|
||||
+2
-2
@@ -68,7 +68,7 @@ class AnatomyQuestion(models.Model):
|
||||
# image = models.ImageField()
|
||||
# feedback = models.TextField(null=True)
|
||||
question_type = models.ForeignKey(
|
||||
QuestionType, on_delete=models.SET_NULL, null=True
|
||||
QuestionType, on_delete=models.SET_NULL, null=True, default=1
|
||||
)
|
||||
|
||||
image = models.ImageField(upload_to=image_directory_path, storage=image_storage)
|
||||
@@ -108,7 +108,7 @@ class AnatomyQuestion(models.Model):
|
||||
created_date = models.DateTimeField(default=timezone.now)
|
||||
|
||||
open_access = models.BooleanField(
|
||||
help_text="If an question should be freely available to browse", default=True
|
||||
help_text="If a question should be freely available to browse", default=True
|
||||
)
|
||||
|
||||
author = models.ManyToManyField(
|
||||
|
||||
Reference in New Issue
Block a user