mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #10164 -- Made AutoField increase monotonically on SQLite
Thanks malte for the report.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user