14 lines
348 B
Python
14 lines
348 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__"
|