From 66f9eb0ff1e7147406318c5ba609729678e4e6f6 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 28 Apr 2025 09:48:12 +0200 Subject: 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> --- docs/releases/5.2.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.2.1.txt b/docs/releases/5.2.1.txt index 8ec4d58a92..67244c590f 100644 --- a/docs/releases/5.2.1.txt +++ b/docs/releases/5.2.1.txt @@ -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`). -- cgit v1.3