From 863f16050a5dea17735f21483932b4fa0e9cd73f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 21 Dec 2016 11:25:31 +0530 Subject: [PATCH] [fix] doc loading in lists, fix for blog --- frappe/www/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/www/list.py b/frappe/www/list.py index 6c9b9a1cda..e6a08f58d3 100644 --- a/frappe/www/list.py +++ b/frappe/www/list.py @@ -62,7 +62,7 @@ def get(doctype, txt=None, limit_start=0, limit=20, **kwargs): doc.doctype = doctype new_context = frappe._dict(doc=doc, meta=meta) - if not isinstance(new_context.doc, Document): + if not list_context.get_list and not isinstance(new_context.doc, Document): new_context.doc = frappe.get_doc(doc.doctype, doc.name) if not frappe.flags.in_test: