mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
090870b03e
* chore: add triggered by details for notifications * dev: update issue activity json to include extra fields * dev: remove unused imports and improve the filtering * dev: fix unread filter * dev: fix created_by none when updating the field
13 lines
334 B
Python
13 lines
334 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__"
|
|
|