Merge branch 'master' of https://e.coding.net/ctcdevteam/safesite
This commit is contained in:
commit
c73d8c9e15
|
@ -5697,7 +5697,7 @@ def apiquestion(req):
|
|||
type = data['type']
|
||||
level = data['level']
|
||||
title = data['title']
|
||||
if a == 'add':
|
||||
if a == 'add' and 'id' in data and data['id']:
|
||||
obj = Question()
|
||||
else:
|
||||
obj = Question.objects.get(id=data['id'])
|
||||
|
|
Loading…
Reference in New Issue