Skip to content

Commit

Permalink
Merge pull request #621 from alan-turing-institute/437-user-story-imp…
Browse files Browse the repository at this point in the history
…lement-commenting-feature-for-enhanced-collaboration-on-assurance-case-elements

Fixing migration problems
  • Loading branch information
cptanalatriste authored Sep 26, 2024
2 parents 58a82a4 + a7bceba commit 874235f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 82 deletions.
64 changes: 0 additions & 64 deletions eap_backend/eap_api/migrations/0024_auto_20240926_0816.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.8 on 2024-09-26 08:21
# Generated by Django 3.2.8 on 2024-09-26 12:31

import django.db.models.deletion
from django.db import migrations, models
Expand All @@ -7,21 +7,11 @@
class Migration(migrations.Migration):

dependencies = [
("eap_api", "0024_auto_20240926_0816"),
("eap_api", "0023_assurancecaseimage"),
]

operations = [
migrations.AlterField(
model_name="comment",
name="assurance_case",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="comments",
to="eap_api.assurancecase",
),
),
migrations.AlterField(
migrations.AddField(
model_name="comment",
name="context",
field=models.ForeignKey(
Expand All @@ -32,7 +22,7 @@ class Migration(migrations.Migration):
to="eap_api.context",
),
),
migrations.AlterField(
migrations.AddField(
model_name="comment",
name="evidence",
field=models.ForeignKey(
Expand All @@ -43,7 +33,7 @@ class Migration(migrations.Migration):
to="eap_api.evidence",
),
),
migrations.AlterField(
migrations.AddField(
model_name="comment",
name="goal",
field=models.ForeignKey(
Expand All @@ -54,7 +44,7 @@ class Migration(migrations.Migration):
to="eap_api.toplevelnormativegoal",
),
),
migrations.AlterField(
migrations.AddField(
model_name="comment",
name="property_claim",
field=models.ForeignKey(
Expand All @@ -65,7 +55,7 @@ class Migration(migrations.Migration):
to="eap_api.propertyclaim",
),
),
migrations.AlterField(
migrations.AddField(
model_name="comment",
name="strategy",
field=models.ForeignKey(
Expand All @@ -76,4 +66,15 @@ class Migration(migrations.Migration):
to="eap_api.strategy",
),
),
migrations.AlterField(
model_name="comment",
name="assurance_case",
field=models.ForeignKey(
default=None,
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="comments",
to="eap_api.assurancecase",
),
),
]
6 changes: 5 additions & 1 deletion eap_backend/eap_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ class Comment(models.Model):
)

assurance_case = models.ForeignKey(
AssuranceCase, related_name="comments", on_delete=models.CASCADE, null=True
AssuranceCase,
related_name="comments",
on_delete=models.CASCADE,
null=True,
default=None,
)
goal = models.ForeignKey(
TopLevelNormativeGoal,
Expand Down

0 comments on commit 874235f

Please sign in to comment.