author | Sverre Rabbelier <srabbelier@gmail.com> |
Tue, 07 Apr 2009 18:50:24 +0000 | |
changeset 2119 | 15cfe49eea42 |
parent 2118 | ef55a80466b6 |
child 2120 | b148456b4939 |
--- a/app/soc/views/models/base.py Tue Apr 07 18:20:27 2009 +0000 +++ b/app/soc/views/models/base.py Tue Apr 07 18:50:24 2009 +0000 @@ -546,7 +546,7 @@ except ValueError: export = None - content = [i for i in contents if i['idx'] == export] + content = [i for i in contents if i.get('idx') == export] if len(content) == 1: content = content[0] key_order = content.get('key_order')