add fix organization bug

This commit is contained in:
baoliang 2021-05-12 22:39:11 +08:00
parent fa0b740e9d
commit fd92ae8204
2 changed files with 7 additions and 0 deletions

View File

@ -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()