mirror of
https://github.com/django/django.git
synced 2025-08-20 02:30:24 +00:00
[5.2.x] Fixed #36357 -- Skipped unique_together in inspectdb output for composite primary keys.
Thanks to Baptiste Mispelon for the report and quick fix, and to Simon
Charette and Jacob Walls for the reviews.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Backport of 66f9eb0ff1
from main.
This commit is contained in:
parent
ec73fd6746
commit
1367a197dd
3 changed files with 10 additions and 1 deletions
|
@ -59,3 +59,7 @@ Bugfixes
|
|||
* Fixed a bug in composite primary key introspection that caused
|
||||
``IntegerField`` to be wrongly identified as ``AutoField`` on SQLite
|
||||
(:ticket:`36358`).
|
||||
|
||||
* Fixed a bug in Django 5.2 that caused a redundant ``unique_together``
|
||||
constraint to be generated for composite primary keys when using
|
||||
:djadmin:`inspectdb` (:ticket:`36357`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue