From 292479b02d3db8643cfce9e48acaaedc6b479e21 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 11 Mar 2013 14:34:05 +0530 Subject: [PATCH] march.p03 patch fix --- patches/march_2013/p03_rename_blog_to_blog_post.py | 1 + 1 file changed, 1 insertion(+) 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 e7f8b454e3..ce32868f6c 100644 --- a/patches/march_2013/p03_rename_blog_to_blog_post.py +++ b/patches/march_2013/p03_rename_blog_to_blog_post.py @@ -5,4 +5,5 @@ def execute(): webnotes.conn.sql('''update tabBlogger set posts=(select count(*) from tabBlog where ifnull(blogger,"")=tabBlogger.name)''') webnotes.rename_doc("DocType", "Blog", "Blog Post", force=True) + webnotes.conn.reload_doc('website', 'doctype', 'blog_post') webnotes.conn.sql("""update `tabBlog Post` set published_on=creation""")