Skip to content

Commit 07b75e6

Browse files
Replace TextField with JSONField
1 parent d32798d commit 07b75e6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

backend/problem/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 4.2.20 on 2025-05-22 12:39
1+
# Generated by Django 4.2.20 on 2025-05-22 13:40
22

33
from django.db import migrations, models
44

@@ -28,7 +28,7 @@ class Migration(migrations.Migration):
2828
choices=[("sick", "Sick"), ("fracas", "FraCaS")], max_length=255
2929
),
3030
),
31-
("content", models.TextField()),
31+
("content", models.JSONField()),
3232
],
3333
),
3434
]

backend/problem/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ class ProblemType(models.TextChoices):
1111
choices=ProblemType.choices,
1212
)
1313

14-
content = models.TextField()
14+
content = models.JSONField()

0 commit comments

Comments
 (0)