freakboy3742/django — pull request #3 by joshourisman (2012-09-18 21:09:38+00:00)
Title: BaseDatabaseIntrospection.sequence_list() lists invalid sequences if there are swappable models.

BaseDatabaseIntrospection.sequence_list() was listing sequences for all models, and not taking into account that some might be swappable. As a result, sqlflush was producing invalid SQL that wouldn't run against a database created with syncdb. This meant, among other things, that tests couldn't run. Causing sequence_list() to only look at models whose tables exist fixes the problem.