--- Django-1.3/django/db/backends/creation.py	2011-02-02 16:02:14.000000000 +0200
+++ Django-1.3-sqlitefix/django/db/backends/creation.py	2011-04-20 09:55:42.833580002 +0300
@@ -40,6 +40,7 @@
         qn = self.connection.ops.quote_name
         for f in opts.local_fields:
             col_type = f.db_type(connection=self.connection)
+            col_type_suffix = f.db_type_suffix(connection=self.connection)
             tablespace = f.db_tablespace or opts.db_tablespace
             if col_type is None:
                 # Skip ManyToManyFields, because they're not represented as
@@ -64,6 +65,8 @@
                     pr = pending_references.setdefault(f.rel.to, []).append((model, f))
                 else:
                     field_output.extend(ref_output)
+            if col_type_suffix:
+                field_output.append(style.SQL_KEYWORD(col_type_suffix))
             table_output.append(' '.join(field_output))
         for field_constraints in opts.unique_together:
             table_output.append(style.SQL_KEYWORD('UNIQUE') + ' (%s)' % \
--- Django-1.3/django/db/backends/sqlite3/creation.py	2010-12-09 01:48:28.000000000 +0200
+++ Django-1.3-sqlitefix/django/db/backends/sqlite3/creation.py	2011-04-18 09:53:36.097201003 +0300
@@ -30,6 +30,10 @@
         'TimeField':                    'time',
     }
 
+    data_types_suffix = {
+        'AutoField':                    'autoincrement',
+    }
+
     def sql_for_pending_references(self, model, style, pending_references):
         "SQLite3 doesn't support constraints"
         return []
--- Django-1.3/django/db/models/fields/__init__.py	2011-03-03 15:28:20.000000000 +0200
+++ Django-1.3-sqlitefix/django/db/models/fields/__init__.py	2011-04-18 09:59:57.497201001 +0300
@@ -221,6 +221,13 @@
         except KeyError:
             return None
 
+    def db_type_suffix(self, connection):
+        data = DictWrapper(self.__dict__, connection.ops.quote_name, "qn_")
+        try:
+            return connection.creation.data_types_suffix[self.get_internal_type()] % data
+        except (KeyError, AttributeError):
+            return False
+
     def unique(self):
         return self._unique or self.primary_key
     unique = property(unique)
