[Foundation Fellowship] Change website to website_url

This commit is contained in:
Faris Ansari
2018-03-01 17:28:11 +05:30
parent 14f39e5405
commit a0c26689d1
4 changed files with 528 additions and 505 deletions

View File

@@ -10,7 +10,7 @@ class FoundationFellowship(WebsiteGenerator):
website = frappe._dict( website = frappe._dict(
condition_field = "show_in_website" condition_field = "show_in_website"
) )
print( "website", website )
def validate(self): def validate(self):
if not self.route: if not self.route:
self.route = 'foundation-fellow/' + self.scrub(self.name) self.route = 'foundation-fellow/' + self.scrub(self.name)

View File

@@ -1 +1,2 @@
foundation.patches.v0_0.update_erpnext_job_route foundation.patches.v0_0.update_erpnext_job_route
foundation.patches.v0_0.change_website_to_website_url

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
frappe.db.sql('''
ALTER TABLE `tabFoundation Fellowship` CHANGE `website` `website_url` varchar(140);
''')