소스 검색

import csv fixtures too

version-14
Rushabh Mehta 11 년 전
부모
커밋
1c42cf90fe
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -2
      frappe/utils/fixtures.py

+ 1
- 2
frappe/utils/fixtures.py 파일 보기

@@ -10,6 +10,5 @@ def sync_fixtures():
for app in frappe.get_installed_apps():
if os.path.exists(frappe.get_app_path(app, "fixtures")):
for fname in os.listdir(frappe.get_app_path(app, "fixtures")):
if fname.endswith(".json"):
if fname.endswith(".json") or fname.endswith(".csv"):
import_doclist(frappe.get_app_path(app, "fixtures", fname))

불러오는 중...
취소
저장