add fix organization bug
This commit is contained in:
parent
fa0b740e9d
commit
fd92ae8204
Binary file not shown.
|
@ -94,6 +94,13 @@ def detail_notice(request, notice_id):
|
||||||
n['adminStatus'] = p.admin_status
|
n['adminStatus'] = p.admin_status
|
||||||
m.append(n)
|
m.append(n)
|
||||||
results['profiles'] = m
|
results['profiles'] = m
|
||||||
|
elif notice.model == 'Organization':
|
||||||
|
o = ReplyModel.objects.get(pk=notice.record_id)
|
||||||
|
detail = dict()
|
||||||
|
detail['id'] = o.id
|
||||||
|
detail['name'] = o.name
|
||||||
|
detail['status'] = o.admin_status
|
||||||
|
results['organization'] = detail
|
||||||
else:
|
else:
|
||||||
m = ReplyModel.objects.get(pk=notice.record_id)
|
m = ReplyModel.objects.get(pk=notice.record_id)
|
||||||
detail = dict()
|
detail = dict()
|
||||||
|
|
Loading…
Reference in New Issue