Skip to content

Commit 1bcb8ca

Browse files
committed
Fix when an initial value does not exist. See ietf-tools#739
- Legacy-Id: 8104
1 parent 0ccbe91 commit 1bcb8ca

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
@@ -89,7 +89,7 @@ def value_from_datadict(self, data, files, name):
8989

9090
def render(self, name, value, attrs=None):
9191
html = u''
92-
for liaison_id in value:
92+
for liaison_id in value or []:
9393
liaison = LiaisonStatement.objects.get(pk=liaison_id)
9494
title = liaison.title
9595
if not title:

0 commit comments

Comments
 (0)