### Eclipse Workspace Patch 1.0
Index: libs/django-trunk/django/core/management/sql.py
===================================================================
--- libs/django-trunk/django/core/management/sql.py	(revision 12454)
+++ libs/django-trunk/django/core/management/sql.py	(working copy)
@@ -119,7 +119,9 @@
         tables = connection.introspection.django_table_names(only_existing=True)
     else:
         tables = connection.introspection.table_names()
-    statements = connection.ops.sql_flush(style, tables, connection.introspection.sequence_list())
+    sequences = [s for s in connection.introspection.sequence_list() 
+                    if s['table'] in tables]
+    statements = connection.ops.sql_flush(style, tables, sequences)
     return statements
 
 def sql_custom(app, style, connection):
