Fix when an initial value does not exist. See #739

- Legacy-Id: 8104
This commit is contained in:
Emilio A. Sánchez López 2014-07-18 16:18:19 +00:00
parent 0ccbe9144f
commit 1bcb8ca8c6

View file

@ -89,7 +89,7 @@ class RelatedLiaisonWidget(TextInput):
def render(self, name, value, attrs=None):
html = u''
for liaison_id in value:
for liaison_id in value or []:
liaison = LiaisonStatement.objects.get(pk=liaison_id)
title = liaison.title
if not title: