From 816b8d9518c41f034dcbacfd1f1826f2366975e5 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 3 May 2018 11:38:29 +0430 Subject: Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field. --- docs/ref/checks.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 1b9fa18328..9690b5a99b 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -295,6 +295,7 @@ Models as it collides with the query lookup syntax. * **models.E025**: The property ```` clashes with a related field accessor. +* **models.E026**: Model can not contain more than one ``primary_key`` field. Security -------- -- cgit v1.3