X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/983293d923dcede8362ee17b27fc825b2a466096..855ec6e1d29382dcbbfa63aece9e3b127b8ecf11:/forms.py?ds=inline diff --git a/forms.py b/forms.py index b428d28..907e54d 100644 --- a/forms.py +++ b/forms.py @@ -30,7 +30,7 @@ def proxy_fields_for_entity_model(entity_model, fields=None, exclude=None, widge if fields: field_dict = SortedDict( [(f, field_dict.get(f)) for f in fields - if ((not exclude) or (exclude and f not in exclude)) and (f not in ignored)] + if ((not exclude) or (exclude and f not in exclude)) and (f not in ignored) and (f in field_dict)] ) return field_dict