From 7be596f41305b4be26796625bd800d58a04bb0a7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 23 Aug 2013 18:25:58 +0200 Subject: PersonType from single value to multi value for Person --- ishtar_common/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index 157151413..82c0c0ac0 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -155,8 +155,8 @@ class JQueryAutoComplete(forms.TextInput): attrs_select['value'] = val if self.associated_model: try: - attrs_select['value'] = unicode(self.associated_model.\ -objects.get(pk=value)) + attrs_select['value'] = unicode( + self.associated_model.objects.get(pk=value)) except: attrs_select['value'] = "" if not self.attrs.has_key('id'): -- cgit v1.2.3