mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
9
patches/march_2013/p03_rename_blog_to_blog_post.py
Normal file
9
patches/march_2013/p03_rename_blog_to_blog_post.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc('website', 'doctype', 'blogger')
|
||||
webnotes.rename_doc("DocType", "Blog", "Blog Post", force=True)
|
||||
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""")
|
||||
Reference in New Issue
Block a user