From eade315da1c8372ac1dfcf1fd20ea87f454d71ac Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 6 Sep 2013 12:18:16 -0400 Subject: Fixed #10164 -- Made AutoField increase monotonically on SQLite Thanks malte for the report. --- django/db/models/fields/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'django/db/models/fields') diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index fe24fab589..91046f98c6 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -395,6 +395,9 @@ class Field(object): "check": check_string, } + def db_type_suffix(self, connection): + return connection.creation.data_types_suffix.get(self.get_internal_type()) + @property def unique(self): return self._unique or self.primary_key -- cgit v1.3