Przeglądaj źródła

[fix] [minor] [mapper]

version-14
Anand Doshi 12 lat temu
rodzic
commit
060617acb0
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      webnotes/model/mapper.py

+ 4
- 1
webnotes/model/mapper.py Wyświetl plik

@@ -26,8 +26,11 @@ from webnotes import _
from webnotes.utils import cstr
from webnotes.model import default_fields

def get_mapped_doclist(from_doctype, from_docname, table_maps, target_doclist=[],
def get_mapped_doclist(from_doctype, from_docname, table_maps, target_doclist=None,
postprocess=None, ignore_permissions=False):
if target_doclist is None:
target_doclist = []
if isinstance(target_doclist, basestring):
target_doclist = json.loads(target_doclist)


Ładowanie…
Anuluj
Zapisz