From 1c42cf90fe2bd8662651a30596e8b854b0d0bd1f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 26 Feb 2014 19:29:37 +0530 Subject: [PATCH] import csv fixtures too --- frappe/utils/fixtures.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/utils/fixtures.py b/frappe/utils/fixtures.py index f5e08c852e..9fa9c1c148 100644 --- a/frappe/utils/fixtures.py +++ b/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)) - \ No newline at end of file