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 e7f8b454e3e..ce32868f6c8 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""")