.
This commit is contained in:
+4
-2
@@ -563,8 +563,10 @@ def loadJsonAnswer(answer):
|
|||||||
# Update an existing answer
|
# Update an existing answer
|
||||||
# should never be more than one (famous last words)
|
# should never be more than one (famous last words)
|
||||||
ans = exiting_answers[0]
|
ans = exiting_answers[0]
|
||||||
ans.normal = normal
|
if answer["qidn"] == "1":
|
||||||
ans.answer = posted_answer
|
ans.normal = normal
|
||||||
|
elif answer["qidn"] == "2":
|
||||||
|
ans.answer = posted_answer
|
||||||
ans.full_clean()
|
ans.full_clean()
|
||||||
ans.save()
|
ans.save()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user