Skip to content

Commit 741b859

Browse files
committed
Fix signature of DocEventAdmin method (needs explicit 'self' parameter)
- Legacy-Id: 4381
1 parent 462aff5 commit 741b859

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class BallotTypeAdmin(admin.ModelAdmin):
121121
# events
122122

123123
class DocEventAdmin(admin.ModelAdmin):
124-
def rev(obj):
124+
def rev(self, obj):
125125
return obj.doc.rev
126126
list_display = ["doc", "type", "rev", "by", "time"]
127127
search_fields = ["doc__name", "by__name"]

0 commit comments

Comments
 (0)