mirror of
https://github.com/django/django.git
synced 2025-01-16 05:12:23 +00:00
9f7772e098
Introspected database constraints instead of relying on _meta.related_objects to determine whether or not a table or a column is referenced on rename operations. This has the side effect of ignoring both db_constraint=False and virtual fields such as GenericRelation which aren't backend by database level constraints and thus shouldn't prevent the rename operations from being performed in a transaction. Regression in 095c1aaa898bed40568009db836aa8434f1b983d. Thanks Tim for the additional tests and edits, and Mariusz for the review.
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
==========================
|
|
Django 2.0.1 release notes
|
|
==========================
|
|
|
|
*Expected January 1, 2018*
|
|
|
|
Django 2.0.1 fixes several bugs in 2.0.
|
|
|
|
Bugfixes
|
|
========
|
|
|
|
* Fixed a regression in Django 1.11 that added newlines between ``MultiWidget``'s
|
|
subwidgets (:ticket:`28890`).
|
|
|
|
* Fixed incorrect class-based model index name generation for models with
|
|
quoted ``db_table`` (:ticket:`28876`).
|
|
|
|
* Fixed incorrect foreign key constraint name for models with quoted
|
|
``db_table`` (:ticket:`28876`).
|
|
|
|
* Fixed a regression in caching of a ``GenericForeignKey`` when the referenced
|
|
model instance uses more than one level of multi-table inheritance
|
|
(:ticket:`28856`).
|
|
|
|
* Reallowed filtering a queryset with ``GeometryField=None`` (:ticket:`28896`).
|
|
|
|
* Corrected admin check to allow a ``OneToOneField`` in
|
|
``ModelAdmin.autocomplete_fields`` (:ticket:`28898`).
|
|
|
|
* Fixed a regression on SQLite where ``DecimalField`` returned a result with
|
|
trailing zeros in the fractional part truncated (:ticket:`28915`).
|
|
|
|
* Fixed crash in the ``testserver`` command startup (:ticket:`28941`).
|
|
|
|
* Fixed crash when coercing a translatable URL pattern to ``str``
|
|
(:ticket:`28947`).
|
|
|
|
* Fixed crash on SQLite when renaming a field in a model referenced by a
|
|
``ManyToManyField`` (:ticket:`28884`).
|