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']
|
type = data['type']
|
||||||
level = data['level']
|
level = data['level']
|
||||||
title = data['title']
|
title = data['title']
|
||||||
if a == 'add':
|
if a == 'add' and 'id' in data and data['id']:
|
||||||
obj = Question()
|
obj = Question()
|
||||||
else:
|
else:
|
||||||
obj = Question.objects.get(id=data['id'])
|
obj = Question.objects.get(id=data['id'])
|
||||||
|
|
Loading…
Reference in New Issue