From 7b938291ce987a87a757fe11b089ce4fd0c106dc Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 7 Oct 2024 17:12:58 +0100 Subject: [PATCH] . --- oef/management/commands/importoef.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oef/management/commands/importoef.py b/oef/management/commands/importoef.py index f610a37d..24abf872 100644 --- a/oef/management/commands/importoef.py +++ b/oef/management/commands/importoef.py @@ -26,6 +26,7 @@ class Command(BaseCommand): entry.questions = entry.questions + "\n" + row.find_all("td")[0].text rows = rows - 1 if rows == 0: + entry.questions_original = entry.questions entry.save() continue @@ -46,6 +47,7 @@ class Command(BaseCommand): if cells[0].has_attr("rowspan"): rows = int(cells[0]["rowspan"]) - 1 else: + entry.questions_original = entry.questions entry.save() #Entry.objects.all().delete()