mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 18:36:18 +00:00
added notification type in serializer
This commit is contained in:
@ -36,7 +36,7 @@ class NotificationListSerializer(serializers.ModelSerializer):
|
|||||||
class Meta(object):
|
class Meta(object):
|
||||||
"""meta info"""
|
"""meta info"""
|
||||||
model = Notification
|
model = Notification
|
||||||
fields = ['id', 'data', 'badge', 'is_read', 'created_at']
|
fields = ['id', 'notification_type', 'data', 'badge', 'is_read', 'created_at']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_badge(obj):
|
def get_badge(obj):
|
||||||
|
Reference in New Issue
Block a user