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. --- docs/releases/1.7.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 1390317875..32b5e910a1 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -336,6 +336,14 @@ Miscellaneous when called on an instance without a primary key value. This is done to avoid mutable ``__hash__`` values in containers. +* The :meth:`django.db.backends.sqlite3.DatabaseCreation.sql_create_model` + will now create :class:`~django.db.models.AutoField` columns in SQLite + databases using the ``AUTOINCREMENT`` option, which guarantees monotonic + increments. This will cause primary key numbering behavior to change on + SQLite, becoming consistent with most other SQL databases. If you have a + database created with an older version of Django, you will need to migrate + it to take advantage of this feature. See ticket #10164 for details. + * ``django.contrib.auth.models.AbstractUser`` no longer defines a :meth:`~django.db.models.Model.get_absolute_url()` method. The old definition returned ``"/users/%s/" % urlquote(self.username)`` which was arbitrary -- cgit v1.3