fix: validate url for job opportunity
This commit is contained in:
@@ -8,7 +8,10 @@ from frappe import _
|
|||||||
from frappe.utils import get_link_to_form
|
from frappe.utils import get_link_to_form
|
||||||
|
|
||||||
class JobOpportunity(Document):
|
class JobOpportunity(Document):
|
||||||
pass
|
|
||||||
|
def validate(self):
|
||||||
|
frappe.utils.validate_url(self.company_website, True)
|
||||||
|
frappe.utils.validate_url(self.application_link, True)
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def report(job, reason):
|
def report(job, reason):
|
||||||
|
|||||||
Reference in New Issue
Block a user