feat(protocol): add ProtocolState implementation

Introduce model, admin, serializers, views and URL routes for managing protocol states.
This commit is contained in:
sankalp committed 2026-06-25 23:12:35 +05:45
1 parent e220cfdaa3
commit 660d55f4f4
5 files changed
+106 -16

No files matched your search

+9 -3
View File
@@ -1,5 +1,11 @@
"""generated with djinit"""
from django.contrib import admin
# Register your models here.
from src.notifications.models import Notification
@admin.register(Notification)
class NotificationAdmin(admin.ModelAdmin):
list_display = ("id", "user", "type", "title", "read_at", "created_at")
list_filter = ("type", "read_at", "user")
search_fields = ("title", "message", "user__email")