Skip to content

Commit af039fb

Browse files
committed
Do not assume that the two_pages_field field is not None. Fixes ietf-tools#651
- Legacy-Id: 3063
1 parent 23d0ddf commit af039fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/submit/templatetags/submit_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def show_two_pages(context, two_pages, validation):
2323

2424
@register.filter
2525
def two_pages_decorated_with_validation(value, validation):
26-
pages = value.first_two_pages
26+
pages = value.first_two_pages or ''
2727
if not 'revision' in validation.warnings.keys():
2828
return mark_safe('<pre class="twopages" style="display: none;">%s</pre>' % pages)
2929
result = '<pre class="twopages" style="display: none;">\n'

0 commit comments

Comments
 (0)