mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #29358 -- Added a system check to prohibit models with more than one primary_key field.
This commit is contained in:
committed by
Carlton Gibson
parent
98019df855
commit
816b8d9518
@@ -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
|
||||
--------
|
||||
|
||||
Reference in New Issue
Block a user