diff --git a/cgi-bin/core/doctype/doctype/doctype.py b/cgi-bin/core/doctype/doctype/doctype.py index de8e2e1d4c..3b022ae663 100644 --- a/cgi-bin/core/doctype/doctype/doctype.py +++ b/cgi-bin/core/doctype/doctype/doctype.py @@ -83,7 +83,7 @@ class DocType: import webnotes.defs from webnotes.utils.transfer import in_transfer - if (not in_transfer) and getattr(defs,'developer_mode', 0): + if (not in_transfer) and getattr(webnotes.defs,'developer_mode', 0): self.export_doc() sql("delete from __DocTypeCache")