From 0d11aa0e16cadcef64aada1ae4446153afe8d6ba Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 28 Jun 2026 15:45:27 +0545 Subject: [PATCH] refactor(src/notes): remove admin registration for ProjectNote and add inline comment The changes reduce admin duplication and align with ProjectAdmin inline registration. --- src/notes/admin.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/notes/admin.py b/src/notes/admin.py index fde295a..f7ce742 100644 --- a/src/notes/admin.py +++ b/src/notes/admin.py @@ -1,10 +1 @@ -from django.contrib import admin - -from src.notes.models import ProjectNote - - -@admin.register(ProjectNote) -class ProjectNoteAdmin(admin.ModelAdmin): - list_display = ("id", "title", "project", "created_by", "note_date") - list_filter = ("project", "note_date") - search_fields = ("title", "project__name") +# ProjectNote is registered as an inline on ProjectAdmin (src/projects/admin.py)