Introduce DRF views for ticket creation, listing, updating, and commenting, integrate admin registrations for new models, and provide a demo data command to seed initial content. This enables full project management workflow within the backend.
11 lines
337 B
Python
11 lines
337 B
Python
from django.contrib import admin
|
|
|
|
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")
|