Skip to content

Commit 9fe1820

Browse files
committed
Tweaked the 'Related documents' part of the Document admin page to more intuitively show the relationships.
- Legacy-Id: 15259
1 parent 0df2c0d commit 9fe1820

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/doc/admin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class DocAuthorInline(admin.TabularInline):
3333

3434
class RelatedDocumentInline(admin.TabularInline):
3535
model = RelatedDocument
36+
def this(self, instance):
37+
return instance.source.canonical_name()
38+
readonly_fields = ['this', ]
39+
fields = ['this', 'relationship', 'target', ]
3640
raw_id_fields = ['target']
3741
extra = 1
3842

0 commit comments

Comments
 (0)