* chore: add triggered by details for notifications * dev: update issue activity json to include extra fields * dev: triggered_by details * dev: add bot filtering * dev: unread notification count endpoint * dev: update endpoint to send count for all notification types
13 lines
335 B
Python
13 lines
335 B
Python
# Module imports
|
|
from .base import BaseSerializer
|
|
from .user import UserLiteSerializer
|
|
from plane.db.models import Notification
|
|
|
|
class NotificationSerializer(BaseSerializer):
|
|
|
|
triggered_by_details = UserLiteSerializer(read_only=True, source="triggered_by")
|
|
|
|
class Meta:
|
|
model = Notification
|
|
fields = "__all__"
|
|
|