base setup
This commit is contained in:
8
at_django_boilerplate/notification/utils.py
Executable file
8
at_django_boilerplate/notification/utils.py
Executable file
@@ -0,0 +1,8 @@
|
||||
from at_django_boilerplate.notification.models import Notification
|
||||
|
||||
|
||||
def send_notification(recipient=None,message=None):
|
||||
Notification.objects.create(
|
||||
recipient=recipient,
|
||||
message=message
|
||||
)
|
||||
Reference in New Issue
Block a user