summaryrefslogtreecommitdiff
path: root/django/db/models
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2013-09-06 12:18:16 -0400
committerTim Graham <timograham@gmail.com>2013-09-06 12:31:17 -0400
commiteade315da1c8372ac1dfcf1fd20ea87f454d71ac (patch)
tree8eeb30580f8ca4a00d2a776e65b88288887f95da /django/db/models
parent630eb0564abd228da439d86ad93acb4089d795e7 (diff)
Fixed #10164 -- Made AutoField increase monotonically on SQLite
Thanks malte for the report.
Diffstat (limited to 'django/db/models')
-rw-r--r--django/db/models/fields/__init__.py3
1 files changed, 3 insertions, 0 deletions
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