add notification and send notification
This commit is contained in:
11
core/apps/notifications/serializers/notification.py
Normal file
11
core/apps/notifications/serializers/notification.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.notifications.models import Notification
|
||||
|
||||
|
||||
class NotificationSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Notification
|
||||
fields = [
|
||||
'token'
|
||||
]
|
||||
Reference in New Issue
Block a user