From 9fe10a3e52d471918ba515363b54636a68f6e6d6 Mon Sep 17 00:00:00 2001 From: Gautier Hayoun Date: Mon, 24 Jan 2011 21:38:32 +0800 Subject: [PATCH] ignore hidden files in db directory --- nashvegas/management/commands/upgradedb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nashvegas/management/commands/upgradedb.py b/nashvegas/management/commands/upgradedb.py index 9994149..bc6b875 100644 --- a/nashvegas/management/commands/upgradedb.py +++ b/nashvegas/management/commands/upgradedb.py @@ -68,6 +68,8 @@ def _filter_down(self, stop_at=None): applied.append(x.migration_label) in_directory = os.listdir(self.path) + in_directory = [migration for migration in in_directory if + not migration.startswith(".")] in_directory.sort() applied.sort()