mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field.
This commit is contained in:
parent
98019df855
commit
816b8d9518
3 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
--------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue