X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/a66152cd03df94d103944255b836ed6ebed6ed15..bb938c5fa1db5fe9133c12385526b99fce343f87:/forms.py 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