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()