Index: django/db/backends/mysql/creation.py
===================================================================
--- django/db/backends/mysql/creation.py	(revision 2530)
+++ django/db/backends/mysql/creation.py	(working copy)
@@ -3,7 +3,7 @@
 # be interpolated against the values of Field.__dict__ before being output.
 # If a column type is set to None, it won't be included in the output.
 DATA_TYPES = {
-    'AutoField':         'mediumint(9) unsigned auto_increment',
+    'AutoField':         'integer auto_increment',
     'BooleanField':      'bool',
     'CharField':         'varchar(%(maxlength)s)',
     'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
Index: django/core/management.py
===================================================================
--- django/core/management.py	(revision 2530)
+++ django/core/management.py	(working copy)
@@ -114,7 +114,7 @@
     not_installed_models = set(pending_references.keys())
     if not_installed_models:
         final_output.append('-- The following references should be added but depend on non-existant tables:')
-        for klass in not_found_models:
+        for klass in not_installed_models:
             final_output.extend(['-- ' + sql for sql in 
                 _get_sql_for_pending_references(klass, pending_references)])
 
