Skip to content

Commit 46139d2

Browse files
committed
Fix up DocEvent admin
- Legacy-Id: 3911
1 parent 8153552 commit 46139d2

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ietf/doc/admin.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,10 @@ class DocAliasAdmin(admin.ModelAdmin):
113113
# events
114114

115115
class DocEventAdmin(admin.ModelAdmin):
116-
list_display = ["doc", "type", "by_raw", "time"]
116+
list_display = ["doc", "type", "by", "time"]
117+
search_fields = ["doc__name", "by__name"]
117118
raw_id_fields = ["doc", "by"]
118119

119-
def by_raw(self, instance):
120-
return instance.by_id
121-
by_raw.short_description = "By"
122-
123120
admin.site.register(DocEvent, DocEventAdmin)
124121

125122
admin.site.register(NewRevisionDocEvent, DocEventAdmin)

0 commit comments

Comments
 (0)