Merge branch 'master' of http://210.77.77.77/xieshen/newmediamonitoring into master
This commit is contained in:
commit
6a2d73d922
|
@ -68,8 +68,10 @@ def create_task(request):
|
||||||
users = Group_user.objects.filter(group=group)
|
users = Group_user.objects.filter(group=group)
|
||||||
for u in users:
|
for u in users:
|
||||||
g = Group.objects.get(id=group)
|
g = Group.objects.get(id=group)
|
||||||
content = '%s在群组“%s”发布了任务,请查收消息' % (profile, g.name)
|
profile = Userprofile.objects.filter(user_id=u.user_id).first()
|
||||||
Notice.create_normal_notice(u.user_id, content, group)
|
if profile and profile.status == 1:
|
||||||
|
content = '%s在群组“%s”发布了任务,请查收消息' % (profile, g.name)
|
||||||
|
Notice.create_normal_notice(u.user_id, content, group)
|
||||||
return JsonResponse({'status': 'success'})
|
return JsonResponse({'status': 'success'})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue