refactor(src/notes): remove admin registration for ProjectNote and add inline comment
The changes reduce admin duplication and align with ProjectAdmin inline registration.
This commit is contained in:
1 file changed
+1
-10
+1
-10
@@ -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)
|
||||
Reference in new issue
Block a user