File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 13
13
from patchwork .models import Cover
14
14
from patchwork .models import CoverComment
15
15
from patchwork .models import DelegationRule
16
+ from patchwork .models import Note
16
17
from patchwork .models import Patch
17
18
from patchwork .models import PatchComment
18
19
from patchwork .models import PatchRelation
@@ -130,6 +131,15 @@ class PatchCommentAdmin(admin.ModelAdmin):
130
131
admin .site .register (PatchComment , PatchCommentAdmin )
131
132
132
133
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
+
133
143
class PatchInline (admin .StackedInline ):
134
144
model = Patch
135
145
extra = 0
You can’t perform that action at this time.
0 commit comments