From f8cc1a6db60203a6a8502b41a3e60a7f661739d9 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 11 Mar 2013 14:36:12 +0530 Subject: [PATCH] march.p03 patch fix --- patches/march_2013/p03_rename_blog_to_blog_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/march_2013/p03_rename_blog_to_blog_post.py b/patches/march_2013/p03_rename_blog_to_blog_post.py index 199dad24489..7520f9cf8bc 100644 --- a/patches/march_2013/p03_rename_blog_to_blog_post.py +++ b/patches/march_2013/p03_rename_blog_to_blog_post.py @@ -3,7 +3,7 @@ import webnotes def execute(): webnotes.reload_doc('website', 'doctype', 'blogger') webnotes.rename_doc("DocType", "Blog", "Blog Post", force=True) - webnotes.conn.reload_doc('website', 'doctype', 'blog_post') + webnotes.reload_doc('website', 'doctype', 'blog_post') webnotes.conn.sql('''update tabBlogger set posts=(select count(*) from `tabBlog Post` where ifnull(blogger,"")=tabBlogger.name)''') webnotes.conn.sql("""update `tabBlog Post` set published_on=creation""")