This commit is contained in:
Ross
2021-03-08 11:48:16 +00:00
parent 4927ac1e88
commit 234339b0bd
+1 -1
View File
@@ -171,7 +171,7 @@ class Long(models.Model):
#exam_order.append(q.id)
path= "{0}longs/questions/{1}".format(settings.MEDIA_ROOT, question_id)
with open(path, "w") as f:
with open(path, "w+") as f:
# Loop through longimage associations
f.write("[")
images = []