File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from patchwork .models import Cover
1414from patchwork .models import CoverComment
1515from patchwork .models import DelegationRule
16+ from patchwork .models import Note
1617from patchwork .models import Patch
1718from patchwork .models import PatchComment
1819from patchwork .models import PatchRelation
@@ -130,6 +131,15 @@ class PatchCommentAdmin(admin.ModelAdmin):
130131admin .site .register (PatchComment , PatchCommentAdmin )
131132
132133
134+ class NoteAdmin (admin .ModelAdmin ):
135+ list_display = ('patch' , 'submitter' , 'created_at' , 'updated_at' )
136+ search_fields = ('patch__name' , 'submitter__name' , 'submitter__email' )
137+ date_hierarchy = 'created_at'
138+
139+
140+ admin .site .register (Note , NoteAdmin )
141+
142+
133143class PatchInline (admin .StackedInline ):
134144 model = Patch
135145 extra = 0
You can’t perform that action at this time.
0 commit comments