fix: whitelist function

Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
Prssanna Desai 2019-12-26 17:56:19 +05:30 committed by GitHub
parent 7c69ff4646
commit 85628e687f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,7 @@ def create_doctype(name, fields):
"name": name
}).insert()
@frappe.whitelist()
def create_contact_records():
if frappe.db.get_all('Contact', {'first_name': 'Test Form Contact 1'}):
return