def queue(users, label, extra_context=None, on_site=True):
    if extra_context is None:
        extra_context = {}
    if isinstance(users, QuerySet):
        users = [row["pk"] for row in users.values("pk")]
    else:
        users = [user.pk for user in users]
    notices = []
    for user in users:
        notices.append((user, label, extra_context, on_site))
    NoticeQueueBatch(pickled_data=pickle.dumps(notices).encode("base64")).save()
Queue the notification in NoticeQueueBatch. This allows for large amounts
dataset/ETHPy150Open davemerwin/blue-channel/external_apps/notification/models.py/queue