From ec03def16409d9282ac289329647b46fff120e19 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 16 Feb 2026 09:36:06 +0000 Subject: [PATCH] Alter primary_answer and structure fields in AnatomyQuestion model for improved clarity and categorization --- ...anatomyquestion_primary_answer_and_more.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 anatomy/migrations/0027_alter_anatomyquestion_primary_answer_and_more.py diff --git a/anatomy/migrations/0027_alter_anatomyquestion_primary_answer_and_more.py b/anatomy/migrations/0027_alter_anatomyquestion_primary_answer_and_more.py new file mode 100644 index 00000000..9b2ac9a5 --- /dev/null +++ b/anatomy/migrations/0027_alter_anatomyquestion_primary_answer_and_more.py @@ -0,0 +1,25 @@ +# Generated by Django 6.0.1 on 2026-02-16 09:32 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0026_add_primary_answer'), + ('atlas', '0090_casecollection_created_casecollection_updated'), + ] + + operations = [ + migrations.AlterField( + model_name='anatomyquestion', + name='primary_answer', + field=models.ForeignKey(blank=True, help_text='Optional explicit primary answer for this question', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='primary_for_questions', to='anatomy.answer'), + ), + migrations.AlterField( + model_name='anatomyquestion', + name='structure', + field=models.ForeignKey(blank=True, help_text='The structure that is being asked about in the question, this is used for categorisation and search purposes but is not required to be set for a question to be valid.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='atlas.structure'), + ), + ]