1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #31530 -- Added system checks for invalid model field names in CheckConstraint.check and UniqueConstraint.condition.

This commit is contained in:
Hasan Ramezani
2020-05-22 15:27:43 +02:00
committed by Mariusz Felisiak
parent 659a73bc0a
commit b7b7df5fbc
3 changed files with 296 additions and 3 deletions

View File

@@ -364,6 +364,7 @@ Models
non-key columns.
* **models.W040**: ``<database>`` does not support indexes with non-key
columns.
* **models.E041**: ``constraints`` refers to the joined field ``<field name>``.
Security
--------