From 26374732fd9cdc8a4746fd578af08fa6be6055c6 Mon Sep 17 00:00:00 2001 From: baoliang Date: Sat, 30 Jan 2021 21:46:16 +0800 Subject: [PATCH] add message --- polls/views/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polls/views/task.py b/polls/views/task.py index ac19416..067bb46 100644 --- a/polls/views/task.py +++ b/polls/views/task.py @@ -65,7 +65,7 @@ def create_task(request): task=task, category=2, image=picture) for group in groups: - users = Group_user.objects.filter(group=group) + users = Group_user.objects.filter(group_id=group) for u in users: g = Group.objects.get(id=group) profile = Userprofile.objects.filter(user_id=u.user_id).first()