def notify_user(user, msg, **kwargs):
    Notification.objects.create(recipient=user, subject=msg, **kwargs)
Send a simple notification to a user
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/customer/notifications/services.py/notify_user