Initial commit - clean project structure
This commit is contained in:
10
notifications/admin.py
Normal file
10
notifications/admin.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Notification
|
||||
|
||||
|
||||
@admin.register(Notification)
|
||||
class NotificationAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'user_id', 'type', 'title', 'is_read', 'created_at')
|
||||
list_filter = ('type', 'is_read')
|
||||
search_fields = ('title', 'body')
|
||||
Reference in New Issue
Block a user