Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field.

This commit is contained in:
Hasan Ramezani 2018-05-03 11:38:29 +04:30 committed by Carlton Gibson
parent 98019df855
commit 816b8d9518
3 changed files with 28 additions and 0 deletions

View file

@ -295,6 +295,7 @@ Models
as it collides with the query lookup syntax.
* **models.E025**: The property ``<property name>`` clashes with a related
field accessor.
* **models.E026**: Model can not contain more than one ``primary_key`` field.
Security
--------