ソースを参照

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))

読み込み中…
キャンセル
保存