Skip to content

Commit 6f9fbea

Browse files
committed
Updated the nomcom admin pages for Feedback to make it possible to see and sort on the Nominees field.
- Legacy-Id: 15558
1 parent 8f073ef commit 6f9fbea

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/nomcom/admin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ class PositionAdmin(admin.ModelAdmin):
4242
admin.site.register(Position, PositionAdmin)
4343

4444
class FeedbackAdmin(admin.ModelAdmin):
45-
list_display = ['id', 'nomcom', 'author', 'subject', 'type', 'user', 'time']
46-
list_filter = ['nomcom', 'type', 'time']
45+
def nominee(self, obj):
46+
return u", ".join(n.person.ascii for n in obj.nominees.all())
47+
nominee.admin_order_field = 'nominees__person__ascii'
48+
49+
list_display = ['id', 'nomcom', 'author', 'nominee', 'subject', 'type', 'user', 'time']
50+
list_filter = ['nomcom', 'type', 'time', ]
4751
raw_id_fields = ['positions', 'topics', 'user']
4852
admin.site.register(Feedback, FeedbackAdmin)
4953

0 commit comments

Comments
 (0)