Skip to content

Commit 3b1cb29

Browse files
committed
Changed an obsolete document.href() to document.get_href(). Fixes issue ietf-tools#2945.
- Legacy-Id: 17559
1 parent 662df7c commit 3b1cb29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/liaisons/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def render(self, name, value, attrs=None):
3838
html += '<div class="attachedFiles form-control widget">'
3939
if value and isinstance(value, QuerySet):
4040
for attachment in value:
41-
html += '<a class="initialAttach" href="%s">%s</a>&nbsp' % (conditional_escape(attachment.document.href()), conditional_escape(attachment.document.title))
41+
html += '<a class="initialAttach" href="%s">%s</a>&nbsp' % (conditional_escape(attachment.document.get_href()), conditional_escape(attachment.document.title))
4242
html += '<a class="btn btn-default btn-xs" href="{}">Edit</a>&nbsp'.format(urlreverse("ietf.liaisons.views.liaison_edit_attachment", kwargs={'object_id':attachment.statement.pk,'doc_id':attachment.document.pk}))
4343
html += '<a class="btn btn-default btn-xs" href="{}">Delete</a>&nbsp'.format(urlreverse("ietf.liaisons.views.liaison_delete_attachment", kwargs={'object_id':attachment.statement.pk,'attach_id':attachment.pk}))
4444
html += '<br />'

0 commit comments

Comments
 (0)