git
This commit is contained in:
@@ -7,9 +7,10 @@ from core.apps.accounts.models import User
|
||||
|
||||
|
||||
@shared_task
|
||||
def create_history(users, title, body, data=None):
|
||||
def create_history(user_ids, title, body, data=None):
|
||||
histories = []
|
||||
for user in users:
|
||||
for user_id in user_ids:
|
||||
user = get_object_or_404(User, id=user_id)
|
||||
histories.append(NotificationHistory(
|
||||
title=title,
|
||||
user=user,
|
||||
|
||||
Reference in New Issue
Block a user