when validating doctype, do not get from cache
This commit is contained in:
parent
b4afea97d3
commit
00ea2db573
2 changed files with 5 additions and 5 deletions
|
|
@ -177,7 +177,7 @@ class DocType:
|
|||
def validate_fields_for_doctype(doctype):
|
||||
from webnotes.model.doctype import get
|
||||
validate_fields(filter(lambda d: d.doctype=="DocField" and d.parent==doctype,
|
||||
get(doctype)))
|
||||
get(doctype, cached=False)))
|
||||
|
||||
def validate_fields(fields):
|
||||
def check_illegal_characters(fieldname):
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@ import webnotes.model.doclist
|
|||
doctype_cache = {}
|
||||
docfield_types = None
|
||||
|
||||
def get(doctype, processed=False):
|
||||
def get(doctype, processed=False, cached=True):
|
||||
"""return doclist"""
|
||||
|
||||
doclist = from_cache(doctype, processed)
|
||||
if doclist: return DocTypeDocList(doclist)
|
||||
if cached:
|
||||
doclist = from_cache(doctype, processed)
|
||||
if doclist: return DocTypeDocList(doclist)
|
||||
|
||||
load_docfield_types()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue