fix: whitelist function
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
parent
7c69ff4646
commit
85628e687f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue