.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.8 on 2021-12-15 20:02
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('anatomy', '0055_ciduseranswer_score'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='ciduseranswer',
|
||||
name='score',
|
||||
field=models.CharField(blank=True, choices=[('', 'Unmarked'), ('0', 'Incorrect'), ('1', 'Half mark'), ('2', 'Correct')], default='', max_length=1),
|
||||
),
|
||||
]
|
||||
@@ -214,18 +214,6 @@ class AnatomyQuestion(models.Model):
|
||||
if i.status != i.MarkOptions.UNMARKED
|
||||
]
|
||||
)
|
||||
# correct_answers = set(
|
||||
# [i.answer.get_compare_string() for i in self.answers.all()]
|
||||
# )
|
||||
# half_mark_answers = set(
|
||||
# [i.answer.get_compare_string() for i in self.half_mark_answers.all()]
|
||||
# )
|
||||
# incorrect_answers = set(
|
||||
# [i.answer.get_compare_string() for i in self.incorrect_answers.all()]
|
||||
# )
|
||||
|
||||
# marked_answers = correct_answers | half_mark_answers | incorrect_answers
|
||||
# return marked_answers
|
||||
|
||||
def get_annotations(self):
|
||||
return self.image_annotations
|
||||
|
||||
+1
-1
@@ -435,7 +435,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
|
||||
return render(
|
||||
request,
|
||||
"rapids/base.html",
|
||||
f"{self.app_name}/base.html",
|
||||
{
|
||||
"simple_content": "Answer scores updated",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user