From 3d114ad76306e12a3cc1d2c1187414a534bff1ae Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 1 Jul 2011 15:18:24 +0530 Subject: [PATCH] fix in import --- cgi-bin/webnotes/model/doctype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/model/doctype.py b/cgi-bin/webnotes/model/doctype.py index c73474799c..d3731f91ed 100644 --- a/cgi-bin/webnotes/model/doctype.py +++ b/cgi-bin/webnotes/model/doctype.py @@ -141,7 +141,7 @@ class _DocType: for d in doclist: if d['doctype']=='DocField': if d.get('fieldname') or d.get('label'): - fields[d['fieldname'] or d['label']] = d + fields[d.get('fieldname') or d('label')] = d return fields def _update_field_properties(self, doclist):