jbalogh/django-nose — pull request #79 by shacka (2012-06-08 20:15:22+00:00)
Title: Reset sequences only for tables that exists.

If using multiple databases setup we need to make sure we aren't trying
to reset sequences that doesn't exists in particular DB.

I've faced problem with using REUSE_DB=1 with multidb setup. The problem was that NoseTestSuiteRunner.setup_databases() was trying to execute reset statements for *all* the models on *every* connection. My patch adds a check that the model's table is present in DB before executing reset statement.