Fix migration 59's handling of a fresh database. The migration did not handle
the case where the Django auth tables did not exist. The permissions will be
inserted into the table later upon the first run of .
Also add a migration to properly create the permissions entries in the existing
tables.
Signed-off-by: James Ren <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4486 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/database/db_utils_unittest.py b/database/db_utils_unittest.py
index 6c117da..72b7180 100755
--- a/database/db_utils_unittest.py
+++ b/database/db_utils_unittest.py
@@ -28,7 +28,7 @@
def test_check_exists(self):
views = ('view1', 'view2')
def _call_check_exists():
- db_utils._check_exists(self.manager, views, db_utils.VIEW_TYPE)
+ db_utils.check_exists(self.manager, views, db_utils.VIEW_TYPE)
self._setup_exists_expects(views, 'VIEWS')
_call_check_exists()