Backend Draft
This commit is contained in:
8
backend/dashboard/serializers.py
Normal file
8
backend/dashboard/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from rest_framework import serializers
|
||||
from .models import Notification
|
||||
|
||||
class NotificationSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Notification
|
||||
fields = ['id', 'title', 'message', 'is_read', 'link', 'created_at']
|
||||
read_only_fields = ['id', 'title', 'message', 'link', 'created_at']
|
||||
Reference in New Issue
Block a user